From 8c6d33c2de7518ec0030ed038a7d57625fde6133 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 2 Dec 2024 13:48:34 +0100 Subject: emacs: Add awk-ts-mode --- .config/emacs/modules/mm-editing.el | 10 ++++++---- .config/emacs/modules/mm-treesit.el | 3 ++- 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") -- cgit v1.2.3