|
From: | Ian Eure |
Subject: | Re: Add hook for one mode only |
Date: | Sun, 28 Dec 2008 08:59:25 -0800 |
On Dec 28, 2008, at 2:30 AM, Teemu Likonen wrote:
henry atting (2008-12-28 10:00 +0100) wrote: "tab-stop-list" is a variable which does not automatically becamebuffer-local. This means that normally you only define the global value.Fortunately you can make it buffer-local for the current buffer with function "make-local-variable", so this is likely what you want: (add-hook 'ledger-mode-hook '(lambda () (make-local-variable 'tab-stop-list) (setq tab-stop-list '(4 56))))
You can do it that way, though this is cleaner: (set (make-local-variable 'tab-stop-list) '(4 56)) - Ian
[Prev in Thread] | Current Thread | [Next in Thread] |