Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have installed emacs23 on Linux Mint 8. I would like to hide the toolbar, and I can do it with Options > Show/Hide > Tool-bar. But the Tool-bar comes back next time I start emacs. How can I hide it persistently?

share|improve this question
add comment

3 Answers

up vote 23 down vote accepted

Add the following to your init file (~/.emacs or _emacs or ~/.emacs.d/init.el):

(tool-bar-mode -1)
share|improve this answer
add comment

I agree with michael. But if you only add this line to your .emacs file, there will be errors when you run emacs in the command line mode. Thus, a better solution may be adding the following to you .emacs file:

(if window-system
    (tool-bar-mode -1)
)

so that, tool bar will be hidden only when you run it in GUI. Emacs in command line mode does not seem to have a tool bar.

share|improve this answer
add comment

Emacs has a nice built-in customization interface.

Select Options › Customize Emacs › Specific Option, start typing tool, then hit TAB to see the options starting with tool. Choose tool-bar-mode then. Toggle its value to switch it off, and press Save for future sessions.

share|improve this answer
    
Thanks, this was a more general solution. But when I pressed "Save for future sessions", I got "Cannot save customixations; init file was not fully loaded" ...so I think I have some problem with my .emacs-file, but I don't understand it. –  Jonas Apr 8 '10 at 15:08
3  
Sanoj: the best fix for that, if you don't know any lisp, is to make an empty .emacs, and then copy parts of your old .emacs in one at a time and make sure no errors show up in the Messages buffer at startup for each portion you add back in. Or you can put a ";" before lines to comment them out, and follow a similar process of uncommenting a small section, and making sure there are no errors when you restart. –  Justin Smith Apr 12 '10 at 7:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.