emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daniel Clemente <n142857@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Where to define functions for use with org
Date: Thu, 30 Oct 2008 15:47:57 +0100	[thread overview]
Message-ID: <87bpx25eci.fsf@gmail.com> (raw)


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

             reply	other threads:[~2008-10-30 14:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-30 14:47 Daniel Clemente [this message]
2008-10-30 15:47 ` Where to define functions for use with org Paul R
2008-10-31 21:39 ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bpx25eci.fsf@gmail.com \
    --to=n142857@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).