new use-package for c-ts-mode

master
John Turner 1 year ago
parent 80a43c75b9
commit db21b47a47
No known key found for this signature in database

@ -20,10 +20,16 @@
(funcall setup-treesit-mode 'cpp 'c++-ts-mode '("cpp" "cxx" "c++" "hpp" "hxx" "h++")))) (funcall setup-treesit-mode 'cpp 'c++-ts-mode '("cpp" "cxx" "c++" "hpp" "hxx" "h++"))))
(use-package rust-ts-mode (use-package rust-ts-mode
:requires treesit :requires treesit
:hook :hook
(rust-ts-mode . (lambda () (rust-ts-mode . (lambda ()
(when (require 'rust-mode nil t) (when (require 'rust-mode nil t)
(add-hook 'before-save-hook 'rust-before-save-method nil t) (add-hook 'before-save-hook 'rust-before-save-method nil t)
(add-hook 'after-save-hook 'rust-after-save-method nil t) (add-hook 'after-save-hook 'rust-after-save-method nil t)
(use-local-map (make-composed-keymap (list rust-ts-mode-map rust-mode-map))))))) (use-local-map (make-composed-keymap (list rust-ts-mode-map rust-mode-map)))))))
(use-package c-ts-mode
:requires treesit
:custom
(c-ts-mode-indent-style 'linux)
(c-ts-mode-indent-offset 2))

Loading…
Cancel
Save