From 8a814a5bd8ee6d799b1841d55e308397af5a1e64 Mon Sep 17 00:00:00 2001 From: Jakub Czajka Date: Fri, 3 Jun 2022 20:10:58 +0200 Subject: [PATCH] Load tags as a capf. 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 | 8 ++++++++ .gitignore | 1 + 2 files changed, 9 insertions(+) create mode 100644 .dir-locals.el diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000..be31baa --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1,8 @@ +;; Copyright (c) 2022 Jakub Czajka +;; 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)))) diff --git a/.gitignore b/.gitignore index bea5755..3eecfb9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ TAGS +.dir-locals.el -- 2.39.5