[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: controlling window-configuration changes
From: |
knubee |
Subject: |
Re: controlling window-configuration changes |
Date: |
Sun, 22 Jun 2008 03:47:30 -0700 (PDT) |
User-agent: |
G2/1.0 |
> 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:
(add-hook 'moinmoin-mode-hook '(lambda () (setq truncate-partial-
width-windows nil)))
this does not seem to work.
is using add-hook even the correct way to restrict this to a mode --
or am i just messing up the definitions?
thanks.