From dbcfc29514e23d5c6e74dbfa173d0c2ebdecf967 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Thu, 9 May 2024 21:39:35 -0500 Subject: Emacs: Bring back treesitter --- emacs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'emacs') diff --git a/emacs b/emacs index 49518f6..786a8d4 100644 --- a/emacs +++ b/emacs @@ -168,7 +168,6 @@ (add-hook 'Info-mode-hook 'variable-pitch-mode) (add-hook 'woman-mode-hook 'variable-pitch-mode) - (setq flymake-fringe-indicator-position 'left-fringe diff-hl-side 'right) @@ -285,6 +284,7 @@ (javascript "https://github.com/tree-sitter/tree-sitter-javascript" "master" "src") (json "https://github.com/tree-sitter/tree-sitter-json") (make "https://github.com/alemuller/tree-sitter-make") + (ocaml "https://github.com/alemuller/tree-sitter-ocaml") (markdown "https://github.com/ikatyang/tree-sitter-markdown") (python "https://github.com/tree-sitter/tree-sitter-python") (toml "https://github.com/tree-sitter/tree-sitter-toml") @@ -346,7 +346,7 @@ (unless (package-installed-p 'typescript-mode) (package-install 'typescript-mode)) -(add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-mode)) +(add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-ts-mode)) (add-to-list 'auto-mode-alist '("\\.tsx\\'" . tsx-ts-mode)) (add-to-list 'auto-mode-alist '("\\.tf\\'" . terraform-mode)) (add-to-list 'auto-mode-alist '("\\.json\\'" . json-mode)) @@ -383,9 +383,9 @@ (unless (package-installed-p 'smartparens) (package-install 'smartparens)) -(add-hook 'typescript-mode-hook 'prettier-js-mode) +(add-hook 'typescript-ts-mode-hook 'prettier-js-mode) (add-hook 'tsx-ts-mode 'prettier-js-mode) -(add-hook 'typescript-mode-hook #'smartparens-mode) +(add-hook 'typescript-ts-mode-hook #'smartparens-mode) (add-hook 'json-ts-mode-hook #'smartparens-mode) (add-hook 'tuareg-mode-hook #'smartparens-mode) (add-hook 'terraform-mode-hook #'smartparens-mode) -- cgit v1.2.3