* Default minor modes
@ 2008-08-30 12:22 Maurício
2008-08-30 12:34 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 2+ messages in thread
From: Maurício @ 2008-08-30 12:22 UTC (permalink / raw)
To: help-gnu-emacs
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?
Thanks,
Maurício
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Default minor modes
2008-08-30 12:22 Default minor modes Maurício
@ 2008-08-30 12:34 ` Lennart Borgman (gmail)
0 siblings, 0 replies; 2+ messages in thread
From: Lennart Borgman (gmail) @ 2008-08-30 12:34 UTC (permalink / raw)
To: Maurício; +Cc: help-gnu-emacs
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)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-30 12:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-30 12:22 Default minor modes Maurício
2008-08-30 12:34 ` Lennart Borgman (gmail)
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.