src.nth.io/

summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2025-10-02 10:22:50 -0500
committerLuke Hoersten <[email protected]>2025-10-02 10:22:50 -0500
commitfd4f5c0b02d74433e4c17aef4da4f90fdd8cc722 (patch)
tree94df1ee3707f20ac6b0ca7f51359c934b23c96f9 /init.el
parent2ab7c040f84162f6384ef2cdc1691d922d5bb402 (diff)
Upgraded JS modes.
Changes: - Removed js2-mode package - Added treesit-auto package - Enabled global-treesit-auto-mode This will automatically: - Use js-ts-mode for JavaScript files - Install tree-sitter grammars on first use - Apply tree-sitter modes to other languages too (JSON, TypeScript, Python, etc.)
Diffstat (limited to 'init.el')
-rw-r--r--init.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/init.el b/init.el
index afe1581..54d6fe7 100644
--- a/init.el
+++ b/init.el
@@ -66,7 +66,7 @@
(require 'package-require)
(package-require '(rg company exec-path-from-shell expand-region vertico
orderless consult marginalia magit markdown-mode hgignore-mode move-text paredit
- rainbow-delimiters json-mode json-reformat flycheck
+ rainbow-delimiters json-mode json-reformat flycheck treesit-auto
solarized-theme terraform-mode visual-regexp yasnippet yaml-mode
emmet-mode))
@@ -79,7 +79,6 @@
;;; custom requires
-(require 'javascript-init)
(require 'c-init)
(require 'ansible-init)
@@ -215,6 +214,10 @@
(setq-default markdown-command "pandoc -f gfm")
+;;; treesit-auto (automatically use tree-sitter modes and install grammars)
+(global-treesit-auto-mode)
+
+
;;; html-mode
(add-to-list 'auto-mode-alist '("\\.tpl\\'" . html-mode))
(add-hook 'html-mode-hook 'emmet-mode)
@@ -263,7 +266,7 @@
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages
- '(magit-ido magit zencoding-mode yasnippet yaml-mode visual-regexp terraform-mode solarized-theme smex rg rainbow-delimiters paredit move-text markdown-mode json-reformat json-mode jinja2-mode hgignore-mode haskell-mode flycheck flx-ido expand-region exec-path-from-shell company-ansible auto-complete ansible-doc ac-js2)))
+ '(magit yasnippet yaml-mode visual-regexp terraform-mode solarized-theme rg rainbow-delimiters paredit move-text markdown-mode json-reformat json-mode jinja2-mode hgignore-mode haskell-mode flycheck expand-region exec-path-from-shell company-ansible ansible-doc emmet-mode vertico orderless consult marginalia)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.