Minify citre config.

This commit is contained in:
KJ 2024-04-18 07:26:16 -04:00
parent 055b5151df
commit 71367398d6

View File

@ -26,19 +26,12 @@
("C-x c a" . citre-ace-peek) ("C-x c a" . citre-ace-peek)
("C-x c u" . citre-update-this-tags-file)) ("C-x c u" . citre-update-this-tags-file))
:init :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 :config
(with-no-warnings (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' ;; Integrate with `lsp-mode' and `eglot'
(define-advice xref--create-fetcher (:around (fn &rest args) fallback) (define-advice xref--create-fetcher (:around (fn &rest args) fallback)
(let ((fetcher (apply fn args)) (let ((fetcher (apply fn args))