From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Maurício <briqueabraque@yahoo.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Default minor modes
Date: Sat, 30 Aug 2008 14:34:32 +0200 [thread overview]
Message-ID: <48B93E58.5050800@gmail.com> (raw)
In-Reply-To: <g9be1e$1bo$1@ger.gmane.org>
Maurício wrote:
> Hi,
>
> I use:
>
> (setq default-major-mode 'mail-mode)
>
> to set a default major mode on
> startup. How can I define default
> minor modes to be used when I
> change major modes or open new
> buffers?
Use the major mode hooks.
Each major mode should have (and those I know of have) a hook that is
run at the end of turning it on:
(add-hook 'default-major-mode-hook 'TURN-ON-MY-MINOR-MODES)
prev parent reply other threads:[~2008-08-30 12:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-30 12:22 Default minor modes Maurício
2008-08-30 12:34 ` Lennart Borgman (gmail) [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48B93E58.5050800@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=briqueabraque@yahoo.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).