[Top][All Lists]

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

[emacs-wiki-discuss] Re: planner-accomplishments-insinuate

From: Sacha Chua
Subject: [emacs-wiki-discuss] Re: planner-accomplishments-insinuate
Date: Mon, 25 Oct 2004 23:18:42 +0900
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Christopher San Diego <address@hidden> writes:

> write-file-functions planner-accomplishments-update nil t] 5]

Mrph. I always hate dealing with write-file-functions and friends,
as this leads to slight platform cruft. Does anyone have a better
way of handling this?

Could you please try the following? Thanks!

(defun planner-accomplishments-insinuate ()
  "Automatically call `planner-accomplishments-update'."
  (add-hook 'planner-mode-hook
            (lambda ()
                ((boundp 'write-file-functions) 'write-file-functions)
                ((boundp 'local-write-file-hooks) 'local-write-file-hooks)
                ((boundp 'write-file-hooks) 'write-file-hooks))
               'planner-accomplishments-update nil t))))

Sacha Chua <address@hidden> - open source geekette
interests: emacs, gnu/linux, making computer science education fun
wearable computing, personal information management
http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C

reply via email to

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