emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Where to define functions for use with org
@ 2008-10-30 14:47 Daniel Clemente
  2008-10-30 15:47 ` Paul R
  2008-10-31 21:39 ` Eric Schulte
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Clemente @ 2008-10-30 14:47 UTC (permalink / raw)
  To: emacs-orgmode


Hi, I'd like some suggestions about storing (defun)s in .org-files.

  Sometimes Org must use ELisp functions, for instance:
 - a dynamic table uses a function org-dblock-write:some_name to create its contents
 - a table uses a formula like $5='(my-function $2) which does a calculation not available in calc

  These scenarios require that you have already the functions you will use. If you wrote the (defun ...) in your code, you must go there and do C-x C-e to evaluate all of them.

  My question is: ¿how would you make this process automatic and still distribute the function code together with the .org file?

  org provides already contrib/org-eval.el, but I don't want to enable org-eval *globally*, and I am not interested in outputting content; just in defining functions.
  Maybe there are other methods: ideally something similar to Emacs' „local variables“ in headers but for functions.

  How do you do this?

  Thanks,
Daniel

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

end of thread, other threads:[~2008-10-31 21:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-30 14:47 Where to define functions for use with org Daniel Clemente
2008-10-30 15:47 ` Paul R
2008-10-31 21:39 ` Eric Schulte

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