summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emacs/inits/20-programming.el20
1 files changed, 16 insertions, 4 deletions
diff --git a/emacs/inits/20-programming.el b/emacs/inits/20-programming.el
index 881bfc6..b3b034b 100644
--- a/emacs/inits/20-programming.el
+++ b/emacs/inits/20-programming.el
@@ -1,4 +1,4 @@
-;; Time-stamp: <2025-06-25 20h00 BST (anker)>
+;; Time-stamp: <2025-06-25 20h15 BST (anker)>
;; -----------------------------------------------------------------------------
;; General setup
@@ -28,6 +28,13 @@
(add-to-list 'eglot-server-programs
'(python-mode . ("pyright-langserver" "--stdio"))))
+(use-package treesit-auto
+ :custom
+ (treesit-auto-install 'prompt)
+ :config
+ (treesit-auto-add-to-auto-mode-alist 'all)
+ (global-treesit-auto-mode))
+
(use-package centered-window
:defer
:ensure)
@@ -212,7 +219,9 @@
:bind (:map python-mode-map
("C-c C-f" . nil)
- ("M-/" . hippie-expand)))
+ ("M-/" . hippie-expand))
+ :config
+ (setq python-ts-mode-hook python-mode-hook))
;; -----------------------------------------------------------------------------
;; Rust
@@ -242,7 +251,8 @@
(setq rust-indent-offset 4
rust-indent-method-chain t
rust-indent-where-clause t
- rust-format-on-save t))
+ rust-format-on-save t)
+ (setq rust-ts-mode-hook rust-mode-hook))
;; -------------------------------------------------------------------
@@ -280,7 +290,9 @@
("M-n" . end-of-defun)
("C-c C-c" . zig-compile)
("C-c r" . zig-run)
- ("C-c C-r" . my-zig-run)))
+ ("C-c C-r" . my-zig-run))
+ :config
+ (setq zig-ts-mode-hook zig-mode-hook))
(use-package uiua-ts-mode
:ensure