emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] org-babel-post-tangle-hook just opening tangled file


From: Miguel Ruiz
Subject: [Orgmode] org-babel-post-tangle-hook just opening tangled file
Date: Wed, 8 Sep 2010 09:46:44 +0000 (GMT)

Hi

Should

  (add-hook 'org-babel-post-tangle-hook
            (lambda () (save-window-excursion
                        (find-file (buffer-file-name)))))

work in .emacs? 

The purpose is simply opening the tangled file but I think the opening happens 
before the tangled file has finished of being written. 

I have tried

  (add-hook 'org-babel-post-tangle-hook
            (lambda () (save-window-excursion
                        (find-file "anyfile"))))

and no problem, but the first code does nothing, apparently.

I am a beginner with elisp, so I beg your pardon.

Miguel Ruiz.






reply via email to

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