unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* adding function to hook via file local variable
@ 2013-06-13 12:10 Rainer M Krug
  0 siblings, 0 replies; only message in thread
From: Rainer M Krug @ 2013-06-13 12:10 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 475 bytes --]

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 #2: Type: application/pgp-signature, Size: 489 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-13 12:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-13 12:10 adding function to hook via file local variable Rainer M Krug

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).