如何让Emacs在没有那么夸张的情况下开始?

时间:2021-06-28 20:47:51

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?

每次启动Emacs时,我都会看到一个帮助文本页面和一堆消息,建议我尝试使用该教程。我该如何阻止这种情况发生?

6 个解决方案

#1


22  

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

Emacs有几个变量可以抑制这些行为。如果编辑emacs控制文件(.emacs)并插入以下内容:

;; 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.

这应该可以解决你的问题。它们基本上将suppress参数设置为true,以防止您想要摆脱的行为。

#2


9  

Put the following in your .emacs:

将以下内容放在.emacs中:

(setq inhibit-startup-message t)
(setq inhibit-startup-echo-area-message t)

#3


3  

You can customize message in minibuffer therefore remove fanfare:

您可以在迷你缓冲区中自定义消息,因此删除大肆宣传:

;; Hide advertisement from minibuffer
(defun display-startup-echo-area-message ()
  (message ""))

#4


1  

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

将以下内容放入您的个人初始文件(通常〜/ .emacs.el):

(setq inhibit-startup-message t)

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

(使用较旧的Emacs版本的(或setq inhibit-startup-screen t)。)

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.

您还可以关闭消息“有关GNU Emacs和GNU系统的信息,请键入C-h C-a”。在带有变量inhibit-startup-echo-area-message的echo中,但将其设置为t是不够的;您必须将其设置为您的用户名。请参阅inhibit-startup-echo-area-message的文档。

#5


0  

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

如果您的init文件是字节编译的,请改用以下格式:

(eval '(setq inhibit-startup-echo-area-message "YOUR-USER-NAME"))

#6


0  

Add the below to your init file

将以下内容添加到init文件中

(setq inhibit-startup-message t
inhibit-startup-echo-area-message t) 

#1


22  

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

Emacs有几个变量可以抑制这些行为。如果编辑emacs控制文件(.emacs)并插入以下内容:

;; 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.

这应该可以解决你的问题。它们基本上将suppress参数设置为true,以防止您想要摆脱的行为。

#2


9  

Put the following in your .emacs:

将以下内容放在.emacs中:

(setq inhibit-startup-message t)
(setq inhibit-startup-echo-area-message t)

#3


3  

You can customize message in minibuffer therefore remove fanfare:

您可以在迷你缓冲区中自定义消息,因此删除大肆宣传:

;; Hide advertisement from minibuffer
(defun display-startup-echo-area-message ()
  (message ""))

#4


1  

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

将以下内容放入您的个人初始文件(通常〜/ .emacs.el):

(setq inhibit-startup-message t)

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

(使用较旧的Emacs版本的(或setq inhibit-startup-screen t)。)

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.

您还可以关闭消息“有关GNU Emacs和GNU系统的信息,请键入C-h C-a”。在带有变量inhibit-startup-echo-area-message的echo中,但将其设置为t是不够的;您必须将其设置为您的用户名。请参阅inhibit-startup-echo-area-message的文档。

#5


0  

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

如果您的init文件是字节编译的,请改用以下格式:

(eval '(setq inhibit-startup-echo-area-message "YOUR-USER-NAME"))

#6


0  

Add the below to your init file

将以下内容添加到init文件中

(setq inhibit-startup-message t
inhibit-startup-echo-area-message t)