Use Tree-sitter as backend to source code indentation. Provide an `indent-line-function` using the emacs-tree-sitter package
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.1 KiB

(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 4))
(unless (file-exists-p bootstrap-file)
'silent 'inhibit-cookies)
(goto-char (point-max))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'buttercup)
(straight-use-package 'dash)
(straight-use-package 's)
'(tree-sitter :host github
:repo "ubolonton/emacs-tree-sitter"
:files ("lisp/*.el")))
'(tree-sitter-langs :host github
:repo "ubolonton/emacs-tree-sitter"
:files ("langs/*.el" "langs/queries")))
(require 'tree-sitter-langs)
;; lang-specific packages
(straight-use-package 'julia-mode)
(straight-use-package 'rust-mode)
(straight-use-package 'csharp-mode)