Skip to content

Commit

Permalink
* core/core-configuration-layer.el: User defined package has high pri…
Browse files Browse the repository at this point in the history
…ority on :toggle flag
  • Loading branch information
sunlin7 authored and smile13241324 committed Dec 6, 2024
1 parent 48fb918 commit cf258f2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core/core-configuration-layer.el
Original file line number Diff line number Diff line change
Expand Up @@ -1246,9 +1246,12 @@ USEDP if non-nil indicates that made packages are used packages."
dotspacemacs--additional-theme-packages))
(let* ((pkg-name (if (listp pkg) (car pkg) pkg))
(obj (configuration-layer/get-package pkg-name)))
(if obj
(setq obj (configuration-layer/make-package pkg 'dotfile obj))
(setq obj (configuration-layer/make-package pkg 'dotfile)))
(if (null obj)
(setq obj (configuration-layer/make-package pkg 'dotfile))
;; set :toggle to t for user defined package should be enabled default
(unless (and (listp pkg) (memq :toggle pkg))
(oset obj :toggle t))
(setq obj (configuration-layer/make-package pkg 'dotfile obj)))
(configuration-layer//add-package obj usedp)))
(dolist (xpkg dotspacemacs-excluded-packages)
(let ((obj (configuration-layer/get-package xpkg)))
Expand Down

0 comments on commit cf258f2

Please sign in to comment.