unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Enabling/disabling minor modes based on major mode
@ 2011-02-22 13:40 Gary
  2011-02-22 21:54 ` PJ Weisberg
  2011-02-23  4:13 ` Kevin Rodgers
  0 siblings, 2 replies; 3+ messages in thread
From: Gary @ 2011-02-22 13:40 UTC (permalink / raw)
  To: help-gnu-emacs

Is there a nice, consistent, way to do this?

From reading around I found
,----
| (add-hook 'term-mode-hook '(lambda() (set (make-local-variable 
|                                             'global-hl-line-mode) 0)))
`----
but that's clearly specific to global-hl-line-mode.

Or is it? Could I do the same with, say, yas/minor-mode for the
yasnippet modes? Is
,----
| (set (make-local-variable '<minor-mode-name>) 0)
`----
guaranteed to work for all minor modes?

Is there a better way of achieving what I want?

-- 
Gary        Please do NOT send me 'courtesy' replies off-list.




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

end of thread, other threads:[~2011-02-23  4:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-22 13:40 Enabling/disabling minor modes based on major mode Gary
2011-02-22 21:54 ` PJ Weisberg
2011-02-23  4:13 ` Kevin Rodgers

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).