How do I make Emacs start without so much fanfare?

前端 未结 6 1758
轻奢々
轻奢々 2021-02-05 05:58

Every time I start Emacs I see a page of help text and a bunch of messages suggesting that I try the tutorial. How do I stop this from happening?

相关标签:
6条回答
  • 2021-02-05 06:38

    Put the following in your .emacs:

    (setq inhibit-startup-message t)
    (setq inhibit-startup-echo-area-message t)
    
    0 讨论(0)
  • 2021-02-05 06:39

    Put the following in your personal init file (ususally ~/.emacs.el):

    (setq inhibit-startup-message t)
    

    (Or (setq inhibit-startup-screen t) in with older Emacs versions.)

    You can also turn off the message "For information about GNU Emacs and the GNU system, type C-h C-a." in the echo with the variable inhibit-startup-echo-area-message, but it is not enough to set it to t; you must set it to your username. See the documentation for inhibit-startup-echo-area-message.

    0 讨论(0)
  • 2021-02-05 06:40

    If your init file is byte-compiled, use the following form instead:

    (eval '(setq inhibit-startup-echo-area-message "YOUR-USER-NAME"))
    
    0 讨论(0)
  • 2021-02-05 06:41

    Emacs has a couple of variables which inhibit these actions. If you edit your emacs control file (.emacs) and insert the following:

    ;; inhibit-startup-echo-area-message MUST be set to a hardcoded 
    ;; string of your login name 
    (setq inhibit-startup-echo-area-message "USERNAME")
    (setq inhibit-startup-message t)
    

    that should solve your problem. They basically set the inhibit parameters to true to prevent the behavior you want to get rid of.

    0 讨论(0)
  • 2021-02-05 07:00

    Add the below to your init file

    (setq inhibit-startup-message t
    inhibit-startup-echo-area-message t) 
    
    0 讨论(0)
  • 2021-02-05 07:02

    You can customize message in minibuffer therefore remove fanfare:

    ;; Hide advertisement from minibuffer
    (defun display-startup-echo-area-message ()
      (message ""))
    
    0 讨论(0)
提交回复
热议问题