]> git.ekhem.eu.org Git - guix.git/commitdiff
Load tags as a capf.
authorJakub Czajka <jakub@ekhem.eu.org>
Fri, 3 Jun 2022 18:10:58 +0000 (20:10 +0200)
committerJakub Czajka <jczajka@google.com>
Sun, 24 Dec 2023 18:53:07 +0000 (19:53 +0100)
Completion at point functions extend the completion at point
mechanism. This commit enables `tags-completion-at-point-function` and
points it to the TAGS table. It is loaded as a directory local
variable.

.dir-locals.el [new file with mode: 0644]
.gitignore

diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644 (file)
index 0000000..be31baa
--- /dev/null
@@ -0,0 +1,8 @@
+;; Copyright (c) 2022 Jakub Czajka <jakub@ekhem.eu.org>
+;; License: GPL-3.0 or later.
+
+((scheme-mode . ((tags-file-name . "~/conf/TAGS")
+                (eval add-to-list
+                      'completion-at-point-functions
+                      'tags-completion-at-point-function
+                      t))))
index bea575523049584375fc6633238255015d3a4c84..3eecfb91842f7c121f126b7e95ebeef8f9b35c81 100644 (file)
@@ -1 +1,2 @@
 TAGS
+.dir-locals.el