24
2
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?
24
2
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?
39
Add the following to your init file (~/.emacs or _emacs or ~/.emacs.d/init.el):
(tool-bar-mode -1)
8
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
.
6
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.
I'm not seeing this problem with Emacs 24 FWIW. – Paul Bissex – 2016-12-06T15:58:37.483
0
Just for future reference.
~/.emacs file with tool-bar, menu-bar and scroll-bar hidden
;; Disabling things
;;-----------------------------------------------------------------------
(menu-bar-mode -1)
(toggle-scroll-bar -1)
(tool-bar-mode -1)
;;Note: If, after turning any of these off, you want to re-enable them for a single emacs window, you can do so by pressing Meta-x and then typing the command at the M-x prompt. (Copied from Web)
;;Example:
;;M-x tool-bar-mode
;;will turn the toolbar back on.
;;-----------------------------------------------------------------------
Now, your emacs will look like this.
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 – 2010-04-08T15:08:26.6034Sanoj: 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 – 2010-04-12T07:11:31.313