Closed drorata closed 9 years ago
To set it for an org mode buffer I would use at the top of the file:
#+PROPERTY: header-args:es :url "http://localhost:9200"
I haven't tested this, but it should work, and if it doesn't then I need to fix that :D
I will look into how we should treat the es-default-url
variable.
Seems to be the workaround I was after. Nevertheless, it seems like babel always refer to the globally defined es-default-url
What do you mean that it always refers to the globally defined es-default-url
?
The problem with setting a variable with eval in the file is that then it is local for the current buffer, but when org-babel evaluates a src-block it opens a new buffer and starts es-mode. It doesn't inherit anything from the buffer that opens it. That is why we have the header arguments.
Now I understand. Thanks a lot!
No problem! I take that as the issue was resolved. Please reopen if I misunderstood.
I set in my
.emacs
the variablees-default-url
to a certain value that I use my default end point. However, in a certainorg-mode
buffer I want to have a different end point. I tried to set the the variable locally:However, when trying to evaluate a babel-block it still uses the value defined in
.emacs
. I also tried to have a babel block:But it didn't help as well.
Thanks in advance for any kind of help or ideas.