|
From: | Lennart Borgman (gmail) |
Subject: | add-hook and lambda functions |
Date: | Fri, 30 Mar 2007 22:16:18 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666 |
In hs-minor-mode a lambda function is added to the hook: (add-hook 'change-major-mode-hook (lambda () (hs-minor-mode -1)) nil t)Using a lambda function makes it a bit cumbersome to remove this hook if you want to. I would therefor prefer if named functions where used instead. Could this please be changed?
[Prev in Thread] | Current Thread | [Next in Thread] |