GNU bug report logs - #5688
mention one needs setq-default to change the default major-mode

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Sat, 6 Mar 2010 13:07:01 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: mention one needs setq-default to change the default major-mode
Date: Sat, 06 Mar 2010 20:12:31 +0800
In (info "(emacs) Choosing Modes")
After
      When you visit a file that does not specify a major mode to use, or
   when you create a new buffer with `C-x b', the default value of the
   variable `major-mode' specifies which major mode to use.  Normally its
   value is the symbol `fundamental-mode', which specifies Fundamental
   mode.
Please add
   To change it to e.g., text-mode, in your .emacs use
      (setq-default major-mode 'text-mode)

Else beginners (and enders) will just try setq.
Also perhaps mention setq-default in the (describe-variable 'major-mode) docstring.





This bug report was last modified 15 years and 139 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.