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

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

adding function to hook via file local variable


From: Rainer M Krug
Subject: adding function to hook via file local variable
Date: Thu, 13 Jun 2013 14:10:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Hi

I want to add a function to a hook by using a file local variable. I
added the following on top of my file:

,----
| # -*- eval: (add-hook 'org-babel-post-tangle-hook( lambda () (message 
"running the post-tangle shell script") (shell-command "bash 
./postTangleScript.sh"))); -*-
`----

but when I open the file, the function is not added to the
org-babel-post-tangle-hook. What Am I doing wrong here?

Thanks,

Rainer


-- 
Rainer M. Krug

email: RMKrug<at>gmail<dot>com

Attachment: pgpKU0RocczRW.pgp
Description: PGP signature


reply via email to

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