How can I hide the Tool-bar in Emacs persistently? The Next CEO of Stack OverflowHow can I...

Is a stroke of luck acceptable after a series of unfavorable events?

How do we know the LHC results are robust?

How do scammers retract money, while you can’t?

What does this shorthand mean?

Does it take more energy to get to Venus or to Mars?

Rotate a column

Was a professor correct to chastise me for writing "Prof. X" rather than "Professor X"?

Unreliable Magic - Is it worth it?

Return the Closest Prime Number

Which organization defines CJK Unified Ideographs?

Is HostGator storing my password in plaintext?

How to make a variable always equal to the result of some calculations?

What is the point of a new vote on May's deal when the indicative votes suggest she will not win?

Grabbing quick drinks

Shade part of a Venn diagram

Why does standard notation not preserve intervals (visually)

Why didn't Khan get resurrected in the Genesis Explosion?

Is it safe to use c_str() on a temporary string?

Does the Brexit deal have to be agreed by both Houses?

Can a caster that cast Polymorph on themselves stop concentrating at any point even if their Int is low?

Go Pregnant or Go Home

Anatomically Correct Strange Women In Ponds Distributing Swords

Implement the Thanos sorting algorithm

I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin



How can I hide the Tool-bar in Emacs persistently?



The Next CEO of Stack OverflowHow can I prevent the python.el that ships with Emacs 23 from EVER loading?How can I apply a color-scheme (.el file) in emacs?How do I get Emacs to auto-complete tags and brackets for me?How does emacs open a file at the same line as the last time it was opened?Can I customize the format of Emacs' buffers-menu?dpkg : dependency problems - leaving unconfiguredHow do I remove the Emacs toolbar in a maximized window on OS X?How to make emacs auto complete file names in OSX?How do you turn back on the menu-bar permanently having installed the emacs-starter-kit?In Emacs, Listing Buffers in the minibuffer












21















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





























    21















    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



























      21












      21








      21


      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?










      share|improve this question
















      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?







      linux emacs toolbar






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 17 '13 at 12:25









      udo

      4,94163446




      4,94163446










      asked Apr 4 '10 at 22:37









      JonasJonas

      9,7623994120




      9,7623994120






















          4 Answers
          4






          active

          oldest

          votes


















          36














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



          (tool-bar-mode -1)





          share|improve this answer































            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.






            share|improve this answer
























            • I'm not seeing this problem with Emacs 24 FWIW.

              – Paul Bissex
              Dec 6 '16 at 15:58



















            5














            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






            • 4





              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



















            0














            ~/.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.





            share








            New contributor




            vineeshvs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





















              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "3"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f127420%2fhow-can-i-hide-the-tool-bar-in-emacs-persistently%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              4 Answers
              4






              active

              oldest

              votes








              4 Answers
              4






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              36














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



              (tool-bar-mode -1)





              share|improve this answer




























                36














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



                (tool-bar-mode -1)





                share|improve this answer


























                  36












                  36








                  36







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



                  (tool-bar-mode -1)





                  share|improve this answer













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



                  (tool-bar-mode -1)






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 4 '10 at 22:47









                  michaelmichaelmichaelmichael

                  669817




                  669817

























                      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.






                      share|improve this answer
























                      • I'm not seeing this problem with Emacs 24 FWIW.

                        – Paul Bissex
                        Dec 6 '16 at 15:58
















                      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.






                      share|improve this answer
























                      • I'm not seeing this problem with Emacs 24 FWIW.

                        – Paul Bissex
                        Dec 6 '16 at 15:58














                      6












                      6








                      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.






                      share|improve this answer













                      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












                      share|improve this answer



                      share|improve this answer










                      answered Feb 22 '13 at 7:09









                      Yu FuYu Fu

                      15914




                      15914













                      • I'm not seeing this problem with Emacs 24 FWIW.

                        – Paul Bissex
                        Dec 6 '16 at 15:58



















                      • I'm not seeing this problem with Emacs 24 FWIW.

                        – Paul Bissex
                        Dec 6 '16 at 15:58

















                      I'm not seeing this problem with Emacs 24 FWIW.

                      – Paul Bissex
                      Dec 6 '16 at 15:58





                      I'm not seeing this problem with Emacs 24 FWIW.

                      – Paul Bissex
                      Dec 6 '16 at 15:58











                      5














                      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






                      • 4





                        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
















                      5














                      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






                      • 4





                        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














                      5












                      5








                      5







                      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













                      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












                      share|improve this answer



                      share|improve this answer










                      answered Apr 6 '10 at 9:03









                      Török GáborTörök Gábor

                      1,55331527




                      1,55331527













                      • 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






                      • 4





                        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



















                      • 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






                      • 4





                        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

















                      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





                      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




                      4




                      4





                      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





                      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











                      0














                      ~/.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.





                      share








                      New contributor




                      vineeshvs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.

























                        0














                        ~/.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.





                        share








                        New contributor




                        vineeshvs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.























                          0












                          0








                          0







                          ~/.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.





                          share








                          New contributor




                          vineeshvs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.










                          ~/.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.






                          share








                          New contributor




                          vineeshvs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.








                          share


                          share






                          New contributor




                          vineeshvs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          answered 4 mins ago









                          vineeshvsvineeshvs

                          11




                          11




                          New contributor




                          vineeshvs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.





                          New contributor





                          vineeshvs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






                          vineeshvs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Super User!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f127420%2fhow-can-i-hide-the-tool-bar-in-emacs-persistently%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

                              VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

                              Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...