Skip to content

Commit

Permalink
feat: fix :ban
Browse files Browse the repository at this point in the history
  • Loading branch information
xhcoding committed Dec 24, 2023
1 parent 310b264 commit 1593a30
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -368,18 +368,16 @@ from: https://github.com/doomemacs/doomemacs/blob/master/lisp/doom-start.el
(require 'use-package)
(push :ban use-package-keywords)

(defun use-package-normalize/:ban (_name _keyword _arg)
"Do nothing, return nil.")
(defalias 'use-package-normalize/:ban 'use-package-normalize-test)

(defun use-package-handler/:ban (name _keyword _arg rest state)
(use-package-process-keywords name rest state))
(defalias 'use-package-handler/:ban 'use-package-handler/:unless)
#+end_src

** 启动速度测试

#+begin_src elisp
(use-package benchmark-init
:ban debug?
:ban not-debug?
:straight t
:demand t
:hook (after-init . benchmark-init/deactivate)
Expand Down

0 comments on commit 1593a30

Please sign in to comment.