Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to hide welcome screen in Emacs

Tags:

emacs

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?

like image 779
Léo Léopold Hertz 준영 Avatar asked Apr 13 '09 17:04

Léo Léopold Hertz 준영


2 Answers

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

Alternatively you could:

alias emacs='emacs --no-splash' 
like image 45
Rob Wells Avatar answered Oct 17 '22 04:10

Rob Wells


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

like image 139
Bastien Léonard Avatar answered Oct 17 '22 05:10

Bastien Léonard