diff options
author | Marc Coquand <marc@mccd.space> | 2024-05-09 21:39:35 -0500 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-05-09 21:39:35 -0500 |
commit | dbcfc29514e23d5c6e74dbfa173d0c2ebdecf967 (patch) | |
tree | 7e0db8290992946c3173aa79b30d5a5c10c08796 | |
parent | 58949be954b631e8a6db3a0f14882ac5050d2fb1 (diff) | |
download | rcm-dbcfc29514e23d5c6e74dbfa173d0c2ebdecf967.tar.gz rcm-dbcfc29514e23d5c6e74dbfa173d0c2ebdecf967.tar.bz2 rcm-dbcfc29514e23d5c6e74dbfa173d0c2ebdecf967.zip |
Emacs: Bring back treesitter
Diffstat (limited to '')
-rw-r--r-- | emacs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |