[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Correct way to load define-auto-insert in major mode?
From: |
Paul Rankin |
Subject: |
Correct way to load define-auto-insert in major mode? |
Date: |
Fri, 15 Jul 2016 17:52:43 +1000 |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Correct way to load define-auto-insert in major mode?,
Paul Rankin <=