unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* extending a mode
@ 2017-10-29  1:43 Christopher Howard
  2017-10-29  3:35 ` Dan Hitt
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Howard @ 2017-10-29  1:43 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-29  7:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-29  1:43 extending a mode Christopher Howard
2017-10-29  3:35 ` Dan Hitt
2017-10-29  7:00   ` Drew Adams

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