emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Local variables in an org file
@ 2015-08-20  6:39 Jarmo Hurri
  2015-08-21  2:23 ` Grant Rettke
  0 siblings, 1 reply; 6+ messages in thread
From: Jarmo Hurri @ 2015-08-20  6:39 UTC (permalink / raw)
  To: emacs-orgmode


Greetings.

Is there a way to define a (preferably local) variable in an org file so
that the value of that variable could be referenced in both plain text
and code blocks?

I often bump into situations where I have a value, say 768, and I use
that value both in code blocks and in the accompanying text. Now basic
programming approach tells me that if and when I need to change that
value, I should be able to do that by changing the value in only one
location. That implies defining a variable for the value.

Properties sound like they might be the solution. But I don't know how
to refer to properties in text and code.

Jarmo

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

end of thread, other threads:[~2015-08-21 17:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-20  6:39 Local variables in an org file Jarmo Hurri
2015-08-21  2:23 ` Grant Rettke
2015-08-21  2:52   ` Thomas S. Dye
2015-08-21 10:54     ` Jarmo Hurri
2015-08-21 11:57       ` Rainer M Krug
2015-08-21 17:08       ` Thomas S. Dye

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