branch: elpa/clojure-ts-mode commit 01e6a0ba3eff56b7da2330c99b1ef63536a17ad9 Author: Roman Rudakov <rruda...@fastmail.com> Commit: Bozhidar Batsov <bozhi...@batsov.dev>
Set clojure-ts-completion-at-point-function locally We should use add-hook instead of add-to-list in order to set it only for clojure-ts-mode buffers. --- CHANGELOG.md | 5 ++++- clojure-ts-mode.el | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6fd4b3f62..0dd9206288 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ ## main (unreleased) - [#109](https://github.com/clojure-emacs/clojure-ts-mode/issues/109): Improve performance by pre-compiling Tree-sitter queries. +- [#111](https://github.com/clojure-emacs/clojure-ts-mode/pull/111): Set `clojure-ts-completion-at-point-function` only for `clojure-ts-mode` + buffers. ## 0.5.0 (2025-06-04) @@ -21,7 +23,8 @@ allows highlighting JS syntax in ClojureScript `js*` forms. - [#104](https://github.com/clojure-emacs/clojure-ts-mode/pull/104): Introduce the `clojure-ts-extra-def-forms` customization option to specify additional `defn`-like forms that should be fontified. -- Introduce completion feature and `clojure-ts-completion-enabled` customization. +- [#108](https://github.com/clojure-emacs/clojure-ts-mode/pull/108): Introduce completion feature and `clojure-ts-completion-enabled` + customization. ## 0.4.0 (2025-05-15) diff --git a/clojure-ts-mode.el b/clojure-ts-mode.el index 806723e652..a513648817 100644 --- a/clojure-ts-mode.el +++ b/clojure-ts-mode.el @@ -2858,7 +2858,8 @@ REGEX-AVAILABLE." (setq-local treesit-thing-settings clojure-ts--thing-settings)) (when clojure-ts-completion-enabled - (add-to-list 'completion-at-point-functions #'clojure-ts-completion-at-point-function))) + (add-hook 'completion-at-point-functions + #'clojure-ts-completion-at-point-function nil 'local))) ;;;###autoload (define-derived-mode clojure-ts-mode prog-mode "Clojure[TS]"