Minify citre config.

This commit is contained in:
KJ 2024-04-18 07:26:16 -04:00
parent 055b5151df
commit 71367398d6
1 changed files with 4 additions and 11 deletions

View File

@ -26,19 +26,12 @@
("C-x c a" . citre-ace-peek)
("C-x c u" . citre-update-this-tags-file))
:init
(require 'citre-config)
(setq citre-auto-enable-citre-mode-modes '(prog-mode))
(setq citre-auto-enable-citre-mode-modes '(prog-mode)
citre-default-create-tags-file-location 'global-cache
citre-prompt-language-for-ctags-command t)
:config
(with-no-warnings
(setq citre-default-create-tags-file-location 'global-cache
;; citre-ctags-program "/usr/bin/ctags"
;; citre-readtags-program "/usr/bin/readtags"
citre-use-project-root-when-creating-tags t
citre-prompt-language-for-ctags-command t)
(with-eval-after-load 'projectile
(setq citre-project-root-function #'projectile-project-root))
;; Integrate with `lsp-mode' and `eglot'
(define-advice xref--create-fetcher (:around (fn &rest args) fallback)
(let ((fetcher (apply fn args))