help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Minor modes and file names


From: steve-humphreys
Subject: Minor modes and file names
Date: Thu, 28 Jan 2021 16:57:11 +0100

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)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]