mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 11:49:37 +00:00
Auto detect mode suffix in hook keyword
This commit is contained in:
parent
ffa5f0397a
commit
24c50da3b2
1 changed files with 4 additions and 1 deletions
|
@ -1264,7 +1264,10 @@ meaning:
|
||||||
(setq every nil)))
|
(setq every nil)))
|
||||||
every))))
|
every))))
|
||||||
#'use-package-recognize-function
|
#'use-package-recognize-function
|
||||||
name label arg))))
|
(if (string-suffix-p "-mode" (symbol-name name))
|
||||||
|
name
|
||||||
|
(intern (concat (symbol-name name) "-mode")))
|
||||||
|
label arg))))
|
||||||
|
|
||||||
(defalias 'use-package-autoloads/:hook 'use-package-autoloads-mode)
|
(defalias 'use-package-autoloads/:hook 'use-package-autoloads-mode)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue