unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* emacs default setup major mode
@ 2008-06-15 13:09 xzen
  2008-06-15 16:57 ` John Paul Wallington
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: xzen @ 2008-06-15 13:09 UTC (permalink / raw)
  To: help-gnu-emacs

how can i change default-major-mode to text-mode. i write (setq
default-major-mode 'text-mode) to /root/.emacs, but when after start
emacs, it still is lisp-interaction. the version of emacs is 22.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: emacs default setup major mode
  2008-06-15 13:09 emacs default setup major mode xzen
@ 2008-06-15 16:57 ` John Paul Wallington
  2008-06-15 18:37 ` B. T. Raven
  2008-06-16 19:05 ` Bastien
  2 siblings, 0 replies; 4+ messages in thread
From: John Paul Wallington @ 2008-06-15 16:57 UTC (permalink / raw)
  To: help-gnu-emacs

xzen <tianshizhiluan@gmail.com> writes:

> how can i change default-major-mode to text-mode. i write (setq
> default-major-mode 'text-mode) to /root/.emacs, but when after start
> emacs, it still is lisp-interaction. the version of emacs is 22.2

You can set the major mode to use for the initial `*scratch*' buffer
by frobbing the customizable variable `initial-major-mode'.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: emacs default setup major mode
  2008-06-15 13:09 emacs default setup major mode xzen
  2008-06-15 16:57 ` John Paul Wallington
@ 2008-06-15 18:37 ` B. T. Raven
  2008-06-16 19:05 ` Bastien
  2 siblings, 0 replies; 4+ messages in thread
From: B. T. Raven @ 2008-06-15 18:37 UTC (permalink / raw)
  To: help-gnu-emacs

xzen wrote:
> how can i change default-major-mode to text-mode. i write (setq
> default-major-mode 'text-mode) to /root/.emacs, but when after start
> emacs, it still is lisp-interaction. the version of emacs is 22.2

That's normal if you're in the *scratch* buffer. If you do C-x C-f and 
then supply a file name without any extension (say "junk") then that new 
buffer will be (Text) instead of (Fundamental). If you name the new 
empty file "junk.lsp" then the mode will be (Lisp) instead of (Lisp 
Interactive). The buffers that are generated automatically by Emacs are 
special and are opened in the appropriate mode.


Ed

p.s. You can set things like this through Options > Customize Emacs.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: emacs default setup major mode
  2008-06-15 13:09 emacs default setup major mode xzen
  2008-06-15 16:57 ` John Paul Wallington
  2008-06-15 18:37 ` B. T. Raven
@ 2008-06-16 19:05 ` Bastien
  2 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2008-06-16 19:05 UTC (permalink / raw)
  To: help-gnu-emacs

xzen <tianshizhiluan@gmail.com> writes:

> how can i change default-major-mode to text-mode. i write (setq
> default-major-mode 'text-mode) to /root/.emacs, but when after start
> emacs, it still is lisp-interaction. the version of emacs is 22.2

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

-- 
Bastien




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-16 19:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-15 13:09 emacs default setup major mode xzen
2008-06-15 16:57 ` John Paul Wallington
2008-06-15 18:37 ` B. T. Raven
2008-06-16 19:05 ` Bastien

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).