Re: [O] local variables to initialize org buffer?

2019-04-01 Thread Lawrence Bottorff
I've got this in my config.org , which is called by my init.el: #+begin_src emacs-lisp (defun borgauf/execute-startup-block () (interactive) (progn (org-babel-goto-named-src-block "startup") (org-babel-execute-src-block))) #+end_src then in my org-mode file I have this at the bottom:

Re: [O] local variables to initialize org buffer?

2019-04-01 Thread Berry, Charles
> On Mar 31, 2019, at 8:59 PM, Lawrence Bottorff wrote: > > Sure, but how should it be implemented? # Local Variables: # eval: (org-babel-load-file (buffer-file-name)) # End: or if you want to follow Eric's suggestion, something like: #+name: startup #+begin_src emacs-lisp :tangle no

Re: [O] local variables to initialize org buffer?

2019-03-31 Thread Eric S Fraga
On Sunday, 31 Mar 2019 at 21:05, Lawrence Bottorff wrote: > I'm trying to figure out how to start up slime and do > org-babel-execute-buffer when I open a certain org-mode file full of Lisp > source code blocks. I guess > > Local Variables: > eval: (elisp-function) > End: > > is discouraged. It

Re: [O] local variables to initialize org buffer?

2019-03-31 Thread Lawrence Bottorff
Sure, but how should it be implemented? On Sun, Mar 31, 2019 at 9:33 PM Berry, Charles wrote: > Will `org-babel-load-file' suffice? > > HTH, > > Chuck > > > On Mar 31, 2019, at 7:05 PM, Lawrence Bottorff > wrote: > > > > I'm trying to figure out how to start up slime and do > org-babel-execute-

Re: [O] local variables to initialize org buffer?

2019-03-31 Thread Berry, Charles
Will `org-babel-load-file' suffice? HTH, Chuck > On Mar 31, 2019, at 7:05 PM, Lawrence Bottorff wrote: > > I'm trying to figure out how to start up slime and do > org-babel-execute-buffer when I open a certain org-mode file full of Lisp > source code blocks. I guess > > Local Variables: >

[O] local variables to initialize org buffer?

2019-03-31 Thread Lawrence Bottorff
I'm trying to figure out how to start up slime and do org-babel-execute-buffer when I open a certain org-mode file full of Lisp source code blocks. I guess Local Variables: eval: (elisp-function) End: is discouraged. So I looked at in buffer settings