emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Price <moptop99@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Setting org-insert-heading-hook while in a minor mode
Date: Wed, 30 Oct 2013 23:58:48 -0400	[thread overview]
Message-ID: <CAN_Dec9kiDKVJkyR-JX=D+SqqdZwwozVWd1jk8UdToK9nYj61Q@mail.gmail.com> (raw)

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

                 reply	other threads:[~2013-10-31  3:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAN_Dec9kiDKVJkyR-JX=D+SqqdZwwozVWd1jk8UdToK9nYj61Q@mail.gmail.com' \
    --to=moptop99@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).