summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-12-02 13:48:34 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-12-02 13:48:34 +0100
commit8c6d33c2de7518ec0030ed038a7d57625fde6133 (patch)
tree35f5153e66405cff22de7c76341a3af61d8e663b
parent4073bea453e52a922b991d48d1ded51693f08251 (diff)
emacs: Add awk-ts-modeHEADmaster
-rw-r--r--.config/emacs/modules/mm-editing.el10
-rw-r--r--.config/emacs/modules/mm-treesit.el3
2 files changed, 8 insertions, 5 deletions
diff --git a/.config/emacs/modules/mm-editing.el b/.config/emacs/modules/mm-editing.el
index 911a2a0..93610fb 100644
--- a/.config/emacs/modules/mm-editing.el
+++ b/.config/emacs/modules/mm-editing.el
@@ -46,7 +46,8 @@
indent-tabs-mode (not mm-humanwave-p))
(defvar mm-editing-indentation-settings-alist
- '((c-mode . (:extras c-basic-offset))
+ '((awk-ts-mode . (:extras awk-ts-mode-indent-level))
+ (c-mode . (:extras c-basic-offset))
(c-ts-mode . (:extras c-ts-mode-indent-offset))
(css-mode . (:extras css-indent-offset))
(emacs-lisp-mode . (:width 8 :spaces t)) ; GNU code uses 8-column tabs
@@ -310,9 +311,10 @@ is as described by `emmet-expand-line'."
;;; Additional Major Modes
-(use-package csv-mode :ensure t)
-(use-package git-modes :ensure t)
-(use-package sed-mode :ensure t)
+(use-package awk-ts-mode :ensure t)
+(use-package csv-mode :ensure t)
+(use-package git-modes :ensure t)
+(use-package sed-mode :ensure t)
;;; Mode-Specific Configurations
diff --git a/.config/emacs/modules/mm-treesit.el b/.config/emacs/modules/mm-treesit.el
index df3d85a..513e4d2 100644
--- a/.config/emacs/modules/mm-treesit.el
+++ b/.config/emacs/modules/mm-treesit.el
@@ -15,7 +15,8 @@
(setopt treesit-font-lock-level 4)
(setopt treesit-language-source-alist
- '((c "https://github.com/tree-sitter/tree-sitter-c")
+ '((awk "https://github.com/Beaglefoot/tree-sitter-awk")
+ (c "https://github.com/tree-sitter/tree-sitter-c")
(cpp "https://github.com/tree-sitter/tree-sitter-cpp")
(css "https://github.com/tree-sitter/tree-sitter-css")
(go "https://github.com/tree-sitter/tree-sitter-go")