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

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

How to disable global minor mode in individual buffer


From: Plato Wu
Subject: How to disable global minor mode in individual buffer
Date: Tue, 15 Feb 2011 10:37:16 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux)

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!


reply via email to

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