aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-08-24 20:02:38 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-08-24 20:02:38 +0100
commit8156bff81ae505ce8ba2b323f880853d0b719a94 (patch)
treec61cc5d8fe7ef157741b1d45b83347de69a7d779
parent594f15ed72d6ca196dd9ea7858cb70ac86a46f15 (diff)
downloaddotfiles-8156bff81ae505ce8ba2b323f880853d0b719a94.tar.gz
dotfiles-8156bff81ae505ce8ba2b323f880853d0b719a94.tar.bz2
dotfiles-8156bff81ae505ce8ba2b323f880853d0b719a94.zip
(Emacs/config)~+project/generate-tags uses root folder
Instead of giving all the project files that project.el THINKS I want, let's just use the folder itself and abuse ctags. Leads to better TAGS overall.
-rw-r--r--Emacs/.config/emacs/config.org4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index 9a019d0..40883e1 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -2609,14 +2609,14 @@ quickly generate them in C/C++ projects.
(if (not project)
(message "+project/generate-tags: Not in project.")
(let ((tags-file (concat (project-root project) "TAGS"))
- (files (format "%s" (project-files project))))
+ (folder (format "%s" (project-root project))))
(set-process-sentinel
(start-process-shell-command
"PROJECT-GENERATE-TAGS"
"*gen-tags*"
(format "ctags -Re -f %s %s"
tags-file
- (substring files 1 (- (length files) 1))))
+ (concat folder "*")))
(lambda (p event)
(when (string= event "finished\n")
(visit-tags-table (concat (project-root (project-current)) "TAGS"))