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)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'buttercup)
(straight-use-package 'dash)
(straight-use-package 's)
;;https://ubolonton.github.io/emacs-tree-sitter/installation/#installing-with-straight-dot-el
(straight-use-package
'(tree-sitter :host github
:repo "ubolonton/emacs-tree-sitter"
:files ("lisp/*.el")))
(straight-use-package
'(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)