Unable to hide welcome screen in Emacs

Viewed 63155

I want to hide the welcome screen.

My .emacs file:

 (setq c-basic-offset 4) ; indents 4 chars
 (setq tab-width 4)          ; and 4 char wide for TAB
 (setq indent-tabs-mode nil) ; And force use of spaces
 
 (turn-on-font-lock)       ; same as syntax on in Vim
 
 (setq width (max width (+ (length str) 1)))   ;line numbers
 
 (setq inhibit-splash-screen t)         ; hide welcome screen

I have tried to run the last line of code in my .emacs unsuccessfully.

How can you hide the welcome screen in Emacs?

6 Answers

Add the following to your $HOME/.emacs:

(setq inhibit-startup-screen t)

The next time you start Emacs, the welcome screen shouldn't appear. If you already have Emacs open with the welcome screen, you can kill it with C-x k (Control-x, then k).

(setq inhibit-splash-screen t)
(setq inhibit-startup-message t)

Alternatively you could:

alias emacs='emacs --no-splash'

You can easily do it through emac's menus...

Options -> customize emacs -> top-level customization group

then select environment group, then initialization, and set inhibit startup screen to on.

Related