summaryrefslogtreecommitdiff
path: root/emacs/inits/20-programming.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/inits/20-programming.el')
-rw-r--r--emacs/inits/20-programming.el19
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))
;; -------------------------------------------------------------------