help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: elisp macros problem


From: Lowell Kirsh
Subject: Re: elisp macros problem
Date: Sat, 31 Jul 2004 13:46:47 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707

By the way, I never mentioned this, but I broke my wrist pretty badly and that's why I'm trying so hard to save keystrokes. It seems like it might not have been worth the effort, but it's definitely been a learning experience anyway.

Lowell

Now, to come back to your problem,

 ;; a function:
(add-hook-to-mode 'test '(message "test mode hook")
    '(message "first hook"))

or:

  ;; a macro:
(add-hook-to-mode test (message "test mode hook")
     (message "first hook"))

I don't see the point, compared to:
    (add-hook 'test-mode-hook
(lambda () (message "test mode hook")
            (message "first hook")))


reply via email to

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