From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Plato Wu Newsgroups: gmane.emacs.help Subject: How to disable global minor mode in individual buffer Date: Tue, 15 Feb 2011 10:37:16 +0800 Organization: A poorly-installed InterNetNews site Message-ID: <87vd0mqazn.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1297765212 4430 80.91.229.12 (15 Feb 2011 10:20:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2011 10:20:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 15 11:20:04 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PpI0j-0001RX-Lf for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Feb 2011 11:19:57 +0100 Original-Received: from localhost ([127.0.0.1]:42174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpI0j-0007Lx-67 for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Feb 2011 05:19:57 -0500 Original-Path: usenet.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsgate.cuhk.edu.hk!install.bitcomm.cn!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: 114.93.78.114 Original-X-Trace: install.bitcomm.cn 1297737438 7163 114.93.78.114 (15 Feb 2011 02:37:18 GMT) Original-X-Complaints-To: news@install.bitcomm.cn Original-NNTP-Posting-Date: Tue, 15 Feb 2011 02:37:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) Cancel-Lock: sha1:0XIlAv+Kh2A52zJ8jhogOPkh5Rk= Original-Xref: usenet.stanford.edu gnu.emacs.help:184958 X-Mailman-Approved-At: Tue, 15 Feb 2011 05:19:31 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79122 Archived-At: 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!