mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 11:49:37 +00:00
extract use-package-hook-handler-flatten-mode-symbols function
This commit is contained in:
parent
97f0287e19
commit
8ec41be418
1 changed files with 5 additions and 1 deletions
|
@ -1266,9 +1266,13 @@ meaning:
|
||||||
(concat (symbol-name sym)
|
(concat (symbol-name sym)
|
||||||
use-package-hook-name-suffix)))
|
use-package-hook-name-suffix)))
|
||||||
(function ,fun)))
|
(function ,fun)))
|
||||||
(if (use-package-non-nil-symbolp syms) (list syms) syms)))))
|
(use-package-hook-handler-flatten-mode-symbols syms)))))
|
||||||
(use-package-normalize-commands args))))
|
(use-package-normalize-commands args))))
|
||||||
|
|
||||||
|
(defun use-package-hook-handler-flatten-mode-symbols (syms)
|
||||||
|
"Ensure that `SYMS' turns into a list of modes."
|
||||||
|
(if (use-package-non-nil-symbolp syms) (list syms) syms))
|
||||||
|
|
||||||
;;;; :commands
|
;;;; :commands
|
||||||
|
|
||||||
(defalias 'use-package-normalize/:commands 'use-package-normalize-symlist)
|
(defalias 'use-package-normalize/:commands 'use-package-normalize-symlist)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue