all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to disable global minor mode in individual buffer
@ 2011-02-15  2:37 Plato Wu
  0 siblings, 0 replies; only message in thread
From: Plato Wu @ 2011-02-15  2:37 UTC (permalink / raw)
  To: help-gnu-emacs

I have enable smart-tab mode as global minor mode by

(global-smart-tab-mode 1)


and want to disable it in eshell-mode,

(add-hook 'eshell-mode-hook
	    '(lambda () 
            (smart-tab-mode -1)))

but It seems not work and I'm sure this hook have been executed.
If I manual run (smart-tab-mode -1) in eshell, It is OK.

I don't know why, could someone help me, thanks in advance!


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

only message in thread, other threads:[~2011-02-15  2:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-15  2:37 How to disable global minor mode in individual buffer Plato Wu

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.