help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Default minor modes


From: Lennart Borgman (gmail)
Subject: Re: Default minor modes
Date: Sat, 30 Aug 2008 14:34:32 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]