Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Emacs start in `text-mode` and get rid of LISP message?

Tags:

emacs

How can I make Emacs start in text-mode and get rid of the following message?

;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
like image 910
Frank Avatar asked Apr 11 '12 16:04

Frank


1 Answers

To get rid of the start message just set the initial-scratch-message variable to ""

(setq initial-scratch-message "")

To start the scratch buffer in text mode you will want to initial-major-mode variable

(setq initial-major-mode 'text-mode)

For setting of auto-mode when you start a specific major-mode you'll want to add an event to the mode hook

(add-hook 'text-mode-hook 'turn-on-auto-fill)
like image 181
zellio Avatar answered Nov 13 '22 12:11

zellio