emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Local variables and babel
@ 2014-01-14 19:25 Thomas S. Dye
  2014-01-14 20:38 ` Michael Albinus
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas S. Dye @ 2014-01-14 19:25 UTC (permalink / raw)
  To: Org-mode

Aloha all,

Impressed by the many problems described on the ML that are caused by a
setting in .emacs, I've slowly been working to make my configuration
buffer local, using source code blocks stored in my local library of
babel or placed in a noexport section of the Org mode file and then
evaluated in the local variables section at the bottom of the file.  So
far, I like this approach.

This led me to try to incorporate some of the file-specific setup steps
into the local variables as well.  For instance, in a file where I'm
working with Common Lisp source code blocks and a graph library, I have
this: 

  # eval: (slime)
  # eval: (org-sbe "graph-setup")

My goal is to open the Org mode file and find that everything is ready
for me to work.

What I've found is that the graph-setup doesn't have any effect on the
Common Lisp environment when run this way. It works fine if, after slime
is up and running, I go to the graph-setup source code block and
evaluate it with C-c C-c.

I'm guessing that I might be running into a concurrency problem here,
such that the local variable evaluation of graph-setup is taking place
before slime has finished setting itself up (which takes many seconds on
my machine).

I am well beyond my programming abilities here and would like to have
opinions on whether this approach is potentially workable and, if so,
how it might be implemented.

All the best,
Tom

-- 
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-14 20:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-14 19:25 Local variables and babel Thomas S. Dye
2014-01-14 20:38 ` Michael Albinus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).