emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Setting org-insert-heading-hook while in a minor mode
@ 2013-10-31  3:58 Matt Price
  0 siblings, 0 replies; only message in thread
From: Matt Price @ 2013-10-31  3:58 UTC (permalink / raw)
  To: Org Mode

Hi everyone,

I am trying to write a minor mode that will help me write a little
more efficiently.

While I'm in that mode, I want to insert a properties drawer every
time I create a new heading.  So I would like to temporarily change
"org-insert-heading-hook" when the minor mode is active.  It's not
obvious to me that there's a way to set a file-local variable while in
a minor-mode -- does anyone know if there is, and I'm just missing it?

Also, I would like if possible for the properties drawer to be
pre-populated with certain properties  Is that also possible?

Thanks,

Matt

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-10-31  3:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-31  3:58 Setting org-insert-heading-hook while in a minor mode Matt Price

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