From: Charles Berry <ccberry@ucsd.edu>
To: emacs-orgmode@gnu.org
Subject: Re: Where does org-mode elisp hacking go?
Date: Wed, 13 Mar 2013 22:38:47 +0000 (UTC) [thread overview]
Message-ID: <loom.20130313T232440-821@post.gmane.org> (raw)
In-Reply-To: CAOPJoVpsDq6=aijKp0gfJ2x2PabyQ_Cmc-RX_zPD+GiCq8XbNQ@mail.gmail.com
Lawrence Bottorff <galaxybeinglambda <at> gmail.com> writes:
>
>
> I see on the org-hacks.html page lots of interesting elisp code.
> If I wanted to use some of this (lots of this) it seems wrong to shove it
> all in my .emacs file. My first guess would be to put what I want into
> separate .el files, go to my .org file and do a load-file on the .el file
> of hacks. But I really loath doing something that's not "best practice."
> What's the best practice for enabling org-mode elisp hacks? And what if
> I want to use just one hack for one project? With usual elisp-ing you can
> simply evaluate region. Is that possible in conjunction with a .org file?
Yes. But you might like to look at
http://orgmode.org/worg/org-contrib/babel/intro.html#sec-8-2-1
which discusses "Emacs Initialization with Babel" for a comprehensive approach.
For a single project, you can but a src_block in the master that loads
whatever is needed or use a file local variables block to load up the requisites.
See: Specifying File Variables in the emacs manual.
next prev parent reply other threads:[~2013-03-13 22:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-13 19:53 Where does org-mode elisp hacking go? Lawrence Bottorff
2013-03-13 22:38 ` Charles Berry [this message]
2013-03-14 9:52 ` Torsten Wagner
2013-03-14 19:57 ` Eric Schulte
2013-03-15 13:50 ` Torsten Wagner
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=loom.20130313T232440-821@post.gmane.org \
--to=ccberry@ucsd.edu \
--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).