[Have been using Emacs for at least 40 years, but still ...]
What to put in .emacs
so that Emacs opens in text mode?
I have tried:
(setq initial-major-mode #'text-mode)
(setq default-major-mode #'text-mode)
(setq-default major-mode #'text-mode)
(setq major-mode #'text-mode)
I use:
GNU Emacs 22.2.1
GNU Emacs 25.1.1
They open always with Lisp Interaction mode.
No need to tell me that I can use: M-x text-mode
.
And opening a file with a .txt
extension.
So?
*scratch*
buffer is in Lisp Interaction Mode. Is that what you're asking about - how to have that buffer use some other mode? "Emacs" doesn't start in a mode. A minor mode can be global, so I suppose you could say that Emacs is in such a mode, if it's turned on. But major modes are for buffers. – Drew Jul 21 '20 at 22:45.txt
file. TypingM-x foo-mode
just before you open a file has no effect on the mode you get for that file. By default after you open a.txt
file, you should be intext-mode
. If that's not the case for you, then there's something funny going on (e.g. in your~/.emacs
). – Stefan Jul 22 '20 at 13:41