[Top][All Lists]

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

Re: controlling window-configuration changes

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: Gecko/20071031 Thunderbird/ Mnenhy/

knubee wrote:
add-hook need a function, not a variable. See

   C-h f add-hook RET

thanks 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))

reply via email to

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