mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
fix(nativation): make consult-buffer (C-x b) work before projectile is loaded
This commit is contained in:
@@ -22,7 +22,13 @@
|
||||
consult--source-project-buffer
|
||||
consult--source-project-file))
|
||||
(consult-preview-max-count 10)
|
||||
(consult-project-root-function 'projectile-project-root))
|
||||
(consult-project-root-function 'siren-consult-project-root)
|
||||
|
||||
:init
|
||||
(defun siren-consult-project-root (&rest args)
|
||||
"Call projectile-project-root if defined, otherwise return empty string."
|
||||
(if (fboundp 'projectile-project-root)
|
||||
(apply 'projectile-project-root args) "")))
|
||||
|
||||
(provide 'siren-consult)
|
||||
;;; siren-consult.el ends here
|
||||
|
||||
Reference in New Issue
Block a user