all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Howard <christopher.howard@qlfiles.net>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: extending a mode
Date: Sat, 28 Oct 2017 17:43:15 -0800	[thread overview]
Message-ID: <1509241395.11482.8.camel@qlfiles.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 502 bytes --]

Hi, I wrote a simple command that I use when in Org mode, and probably
will write a few more in the course of time. I'm not sure if anybody
else besides me would ever use them. However, I want emacs to load
those commands when it enters Org mode. What is the simplest and/or
best way to do this? One trick I learned was that I could (add-hook)
and 'org-mode-hook with a defun in it; however, this causes the command
to be available under other modes as well.

-- 
https://answersingenesis.org/

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2017-10-29  1:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-29  1:43 Christopher Howard [this message]
2017-10-29  3:35 ` extending a mode Dan Hitt
2017-10-29  7:00   ` Drew Adams

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

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

  git send-email \
    --in-reply-to=1509241395.11482.8.camel@qlfiles.net \
    --to=christopher.howard@qlfiles.net \
    --cc=help-gnu-emacs@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.