From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: henry atting Newsgroups: gmane.emacs.help Subject: Add hook for one mode only Date: Sun, 28 Dec 2008 10:00:27 +0100 Organization: 1&1 Internet AG Message-ID: <873ag8oes4.fsf@literaturlatenight.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1230457258 5970 80.91.229.12 (28 Dec 2008 09:40:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Dec 2008 09:40:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 28 10:42:06 2008 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.50) id 1LGs9t-0001R5-Uc for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Dec 2008 10:42:06 +0100 Original-Received: from localhost ([127.0.0.1]:50441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LGs8g-00049j-JD for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Dec 2008 04:40:50 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2!feeder.erje.net!news-2.dfn.de!news.uni-stuttgart.de!peernews!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: port-92-195-27-231.dynamic.qsc.de Original-X-Trace: online.de 1230454658 9658 92.195.27.231 (28 Dec 2008 08:57:38 GMT) Original-X-Complaints-To: abuse@einsundeins.com Original-NNTP-Posting-Date: Sun, 28 Dec 2008 08:57:38 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:ku9AaXqwOwTLi9sYTKexm0Eg+lA= Original-Xref: news.stanford.edu gnu.emacs.help:165614 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:60946 Archived-At: Hello, I want to change the tab-stop-list for ledger-mode only, so I thougt this way would be a good idea: (add-hook 'ledger-mode-hook (function (lambda () (setq tab-stop-list (quote (4 56))) ))) It is but only partially, because after leaving ledger-mode this setting is kept for all other modes as well. henry