unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Minor modes and file names
@ 2021-01-28 15:57 steve-humphreys
  2021-01-28 16:15 ` Robert Pluim
  0 siblings, 1 reply; 4+ messages in thread
From: steve-humphreys @ 2021-01-28 15:57 UTC (permalink / raw)
  To: Help Gnu Emacs

I have made a minor made for texinfo and noticed that the minor mode
does not take effect unless tho file name matches the minor mode name.

For instance, changing the name of the file to "crucible-mode-2021-01-28.el"
the minor mode fails to load.

----- crucible-mode.el -----
(define-minor-mode crucible-mode ...)
(provide 'crucible-mode)

----- gtexinfo.el -----
(add-to-list
   'load-path "~/Genadm/build/gungadin-1.0/elisp/crucible")
(require 'crucible-mode)
(add-hook 'texinfo-mode-hook 'crucible-mode)






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

end of thread, other threads:[~2021-01-28 20:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-28 15:57 Minor modes and file names steve-humphreys
2021-01-28 16:15 ` Robert Pluim
2021-01-28 16:51   ` steve-humphreys
2021-01-28 20:29     ` Tassilo Horn

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