all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Correct way to load define-auto-insert in major mode?
@ 2016-07-15  7:52 Paul Rankin
  0 siblings, 0 replies; only message in thread
From: Paul Rankin @ 2016-07-15  7:52 UTC (permalink / raw)
  To: help-gnu-emacs

Is it right to autoload this?

    ;;;###autoload
    (with-eval-after-load 'autoinsert
      (define-auto-insert '(my-major-mode . "My major mode skeleton")
        my-major-mode-skeleton))

This is outside the mode definition. I had put this inside the define-derived-mode macro, but it was duplicating the skeleton to auto-insert-alist each time the mode was loaded.



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

only message in thread, other threads:[~2016-07-15  7:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-15  7:52 Correct way to load define-auto-insert in major mode? Paul Rankin

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.