title: Finding the Emacs site-lisp directory
body: <p>I am trying to make my Emacs configuration file written for OS X work on Ubuntu. I have this line:</p>
  
  <pre><code>(add-to-list 'load-path "/usr/local/Cellar/emacs/23.3/share/emacs/site-lisp/w3m")
  </code></pre>
  
  <p>It is used to load emacs-w3m. On OS X I installed Emacs using Homebrew, thus it is in /usr/local/Cellar/.The site-lisp directory on Ubuntu is in a different place. How can I write this line in a way that will work on both operating systems? Is there an Emacs Lisp function to retrieve the site-lisp directory?</p>