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

2010-09-08 Thread Eric Schulte
Hi Miguel, The hook is run as part of the tangle process, and the tangle process ensures that if the tangled file was not open before tangling it will not be open after tangling, so the code you pasted below will have no effect. You could use the following function instead of ob-tangle to get the

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

2010-09-08 Thread Miguel Ruiz
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 bein