mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 03:39:38 +00:00
use-package-core.el: use the Emacs set-default function to avoid saving :custom vars twice
This commit is contained in:
parent
4e72885f85
commit
8c31c57106
1 changed files with 3 additions and 1 deletions
|
@ -1394,7 +1394,9 @@ no keyword implies `:all'."
|
||||||
(comment (nth 2 def)))
|
(comment (nth 2 def)))
|
||||||
(unless (and comment (stringp comment))
|
(unless (and comment (stringp comment))
|
||||||
(setq comment (format "Customized with use-package %s" name)))
|
(setq comment (format "Customized with use-package %s" name)))
|
||||||
`(customize-set-variable (quote ,variable) ,value ,comment)))
|
`(funcall (or (get (quote ,variable) 'custom-set) #'set-default)
|
||||||
|
(quote ,variable)
|
||||||
|
,value)))
|
||||||
args)
|
args)
|
||||||
(use-package-process-keywords name rest state)))
|
(use-package-process-keywords name rest state)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue