unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / 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

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