|
From: | Lennart Borgman (gmail) |
Subject: | Re: controlling window-configuration changes |
Date: | Sun, 22 Jun 2008 14:15:39 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
knubee wrote:
add-hook need a function, not a variable. See C-h f add-hook RETthanks for the pointer. i tried: (defun my-truncate () (setq truncate-partial-width-windows nil)) (add-hook 'moinmoin-mode-hook 'my-truncate) this "works" -- but only in the sense that all buffers and modes now treat truncate-partial-width-windows as nil. which seems equivalent to just setq'ing it at the global level. so i also tried:
Sorry, I should have checked what you where trying to set. You have to make the variable buffer local to. Try (defun my-truncate () (set (make-local-variable 'truncate-partial-width-windows) nil))
[Prev in Thread] | Current Thread | [Next in Thread] |