all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Temporarily turn off a minor mode
@ 2009-09-26 15:30 pt
  0 siblings, 0 replies; only message in thread
From: pt @ 2009-09-26 15:30 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,

I want to temporarily turn off specific minor modes in certain major
mode. so I have the following settings:

;; linum-mode is default on
(global-linum-mode 1)

;; add-hook to turn off linum-mode in the Info-mode
(add-hook 'Info-mode-hook
  '(lambda ()
	 (linum-mode -1)))

But it doesn't work. I also tried to turn off visual-line-mode, the
result is the same. So what is the correct way to turn off them
temporarily?


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-26 15:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-26 15:30 Temporarily turn off a minor mode pt

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.