Re: [O] automatically run code blocks when loading an org-mode document

2016-07-24 Thread Nick Dokos
​That's a better solution indeed.​ On Sun, Jul 24, 2016 at 4:27 AM, Eric S Fraga wrote: > On Friday, 22 Jul 2016 at 22:11, Nick Dokos wrote: > > [...] > > > # -*- find-file-hook: org-babel-execute-buffer -*- > > #+BEGIN_SRC emacs-lisp > > (defun handy-stuff(arg) > >

Re: [O] automatically run code blocks when loading an org-mode document

2016-07-24 Thread Eric S Fraga
On Friday, 22 Jul 2016 at 22:11, Nick Dokos wrote: [...] > # -*- find-file-hook: org-babel-execute-buffer -*- > #+BEGIN_SRC emacs-lisp > (defun handy-stuff(arg) > (message arg)) > #+END_SRC > > [[elisp:(handy-stuff "foo")][foo]] > [[elisp:(handy-stuff "bar")][bar]] > > will do that (but you

Re: [O] automatically run code blocks when loading an org-mode document

2016-07-22 Thread grewil3 .
Sir, you are a great genius - many thanks! On Sat, Jul 23, 2016 at 12:11 AM, Nick Dokos wrote: > "grewil3 ." writes: > > > Hi! When I load the document below, I first need to manually evaluate > the code block before I can use > > the links. I would like the

Re: [O] automatically run code blocks when loading an org-mode document

2016-07-22 Thread Nick Dokos
"grewil3 ." writes: > Hi! When I load the document below, I first need to manually evaluate the > code block before I can use > the links. I would like the code block to be automatically evaluated when I > load the document, making > the links usable at once. > > Is there

[O] automatically run code blocks when loading an org-mode document

2016-07-22 Thread grewil3 .
Hi! When I load the document below, I first need to manually evaluate the code block before I can use the links. I would like the code block to be automatically evaluated when I load the document, making the links usable at once. Is there some clever in-buffer-setting I can use, to specify that I