title: Emacs 24.4 cannot load Ergoemacs [Mac OS]
body: <p>I have problem with emacs and ergoemacs on Mac OS.</p>
  
  <p>What I've done:</p>
  
  <ol>
  <li>I installed latest version of emacs (24.4):</li>
  </ol>
  
  <blockquote>
    <p>sudo port install emacs</p>
  </blockquote>
  
  <ol start="2">
  <li><p>Downloaded ergoemacs from <a href="http://ergoemacs.org/" rel="nofollow">http://ergoemacs.org/</a>
  and put it in folder ~/.emacs.d</p></li>
  <li><p>Added to file ~/.emacs:</p></li>
  </ol>
  
  <blockquote>
    <p>(setenv "ERGOEMACS_KEYBOARD_LAYOUT" "us") ; US <br>
    (load-file "~/.emacs.d/ergoemacs/site-lisp/site-start.el")</p>
  </blockquote>
  
  <p>When I tried start emacs, I received an error:</p>
  
  <pre><code>Warning (initialization): An error occurred while loading `/Users/%user_name%/.emacs':
  
  Symbol's function definition is void: tool-bar-mode
  
  To ensure normal operation, you should investigate and remove the
  cause of the error in your initialization file.  Start Emacs with
  the `--debug-init' option to view a complete error backtrace.
  </code></pre>
  
  <p>With debug mode:</p>
  
  <pre><code>Debugger entered--Lisp error: (void-function tool-bar-mode)
    (tool-bar-mode 0)
    eval-buffer(#&lt;buffer  *load*-795277&gt; nil "/Users/%user_name%/.emacs.d/ergoemacs/ergoemacs/init.el" nil t)  ; Reading at buffer position 316
    load-with-code-conversion("/Users/%user_name%/.emacs.d/ergoemacs/ergoemacs/init.el" "/Users/%user_name%/.emacs.d/ergoemacs/ergoemacs/init.el" nil nil)
    load("/Users/%user_name%/.emacs.d/ergoemacs/site-lisp/../ergoemacs/init")
    eval-buffer(#&lt;buffer  *load*-459001&gt; nil "/Users/%user_name%/.emacs.d/ergoemacs/site-lisp/site-start.el" nil t)  ; Reading at buffer position 1432
    load-with-code-conversion("/Users/%user_name%/.emacs.d/ergoemacs/site-lisp/site-start.el" "/Users/%user_name%/.emacs.d/ergoemacs/site-lisp/site-start.el$
    load("/Users/%user_name%/.emacs.d/ergoemacs/site-lisp/site-start.el" nil nil t)
    load-file("~/.emacs.d/ergoemacs/site-lisp/site-start.el")
    eval-buffer(#&lt;buffer  *load*&gt; nil "/Users/%user_name%/.emacs" nil t)  ; Reading at buffer position 106
    load-with-code-conversion("/Users/%user_name%/.emacs" "/Users/%user_name%/.emacs" t t)
    load("~/.emacs" t t)
    #[0 "^H\205\262^@     \306=\203^Q^@\307^H\310Q\202;^@ \311=\204^^^@\307^H\312Q\202;^@\313\307\314\315#\203*^@\316\202;^@\313\307\314\317#\203:^@\320$
    command-line()
    normal-top-level()
  </code></pre>