Skip to content

Commit

Permalink
tweak(core): add an option to check for modules in +package-disabled-p
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Feb 3, 2024
1 parent c674dd2 commit c348bbb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions core/me-lib.el
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,13 @@ Works like `shell-command-to-string' with two differences:
(with-eval-after-load 'recentf
(add-to-list 'recentf-exclude (rx-to-string `(or ,root ,(expand-file-name root)))))))

(defun +package-disabled-p (package)
"Is package PACKAGE disabled in `minemacs-disabled-packages'."
(and (memq package (apply #'append (mapcar #'ensure-list minemacs-disabled-packages))) t))
(defun +package-disabled-p (package &optional module)
"Is package PACKAGE disabled in `minemacs-disabled-packages'.
Optionally, check also for the containing MODULE."
(or
(and (memq package (apply #'append (mapcar #'ensure-list minemacs-disabled-packages))) t)
(and module (not (memq 'me-evil (append minemacs-core-modules minemacs-modules))))))

(defvar +package--download-urls nil)

Expand Down

0 comments on commit c348bbb

Please sign in to comment.