From 71367398d6e66966cfa9a59e97f7b1045a03f1cf Mon Sep 17 00:00:00 2001 From: KJ Date: Thu, 18 Apr 2024 07:26:16 -0400 Subject: [PATCH] Minify citre config. --- configs/init-ctags.el | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/configs/init-ctags.el b/configs/init-ctags.el index 241fe43..8ea2ea7 100644 --- a/configs/init-ctags.el +++ b/configs/init-ctags.el @@ -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))