all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.