Skip to content

Commit

Permalink
Remove doom--help-package-configs override
Browse files Browse the repository at this point in the history
No longer necessary: doomemacs/doomemacs#7849
was accepted.
  • Loading branch information
marienz committed Jun 4, 2024
1 parent e3b8b6d commit 4202b41
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,6 @@ requested makes `doom doctor' work."
(file-name-concat
doom-profile-dir (format "init.%d.elc" emacs-major-version))))

;; TODO: remove if Doom accepts https://github.com/doomemacs/doomemacs/pull/7849
(defadvice! nix-doom-configs-without-git (package)
"Override to use ripgrep instead of git."
:override #'doom--help-package-configs
(let ((default-directory doom-emacs-dir))
(split-string
(cdr (doom-call-process
"rg" "--no-heading" "--line-number" "--iglob" "!*.org"
(format "%s %s($| )"
"(^;;;###package|\\(after!|\\(use-package!)"
package)))
"\n" t)))

;; Doom adds a minor mode that makes flycheck-mode's emacs subprocess initialize
;; Doom. Extend this to set our profile dir before it does so.
(setq-hook! +emacs-lisp--flycheck-non-package-mode
Expand Down

0 comments on commit 4202b41

Please sign in to comment.