diff options
| author | tslil clingman <tslil@posteo.de> | 2025-07-08 20:23:01 +0100 |
|---|---|---|
| committer | tslil clingman <tslil@posteo.de> | 2025-07-08 20:23:01 +0100 |
| commit | c5add6700d69d4ad24f661f9df09c45a6add6074 (patch) | |
| tree | afa7a641977db4ea1eb56cea445758c8b7741e1a | |
| parent | f37727eb6ee9e6929c2a4d7b86e035df8147fac6 (diff) | |
[emacs] lurking issues with ts auto mode
| -rw-r--r-- | emacs/inits/20-programming.el | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/emacs/inits/20-programming.el b/emacs/inits/20-programming.el index 837a2e5..6bd500b 100644 --- a/emacs/inits/20-programming.el +++ b/emacs/inits/20-programming.el @@ -1,4 +1,4 @@ -;; Time-stamp: <2025-07-03 19h02 BST (anker)> +;; Time-stamp: <2025-07-08 20h10 BST (anker)> ;; ----------------------------------------------------------------------------- ;; General setup @@ -243,7 +243,7 @@ (use-package rust-mode :ensure :defer - :bind (:map rust-mode-map + :bind (:map rust-ts-mode-map ("M-," . lh-backward-delim) ("M-." . lh-forward-delim) ("M-m" . lh-matching-delim) @@ -251,18 +251,17 @@ ("M-n" . end-of-defun) ("C-c r c" . rust-compile) ("C-c r r" . rust-run)) - :hook (rust-mode . (lambda () - (cargo-minor-mode) - ;; Pair {} in rust format strings ... ? - (setq-local electric-pair-text-pairs - (cons '(?{ . ?}) electric-pair-pairs)) - (eglot-ensure))) + :hook (rust-ts-mode . (lambda () + (cargo-minor-mode) + ;; Pair {} in rust format strings ... ? + (setq-local electric-pair-text-pairs + (cons '(?{ . ?}) electric-pair-pairs)) + (eglot-ensure))) :config (setq rust-indent-offset 4 rust-indent-method-chain t rust-indent-where-clause t - rust-format-on-save t) - (setq rust-ts-mode-hook rust-mode-hook)) + rust-format-on-save t)) ;; ------------------------------------------------------------------- |
