Created
June 10, 2020 05:38
-
-
Save ubolonton/9e135c0ae12600e6ab0b5d0868a4def7 to your computer and use it in GitHub Desktop.
straight.el + use-package + tree-sitter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defvar bootstrap-version) | |
(let ((bootstrap-file | |
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) | |
(bootstrap-version 5)) | |
(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)) | |
;;; ^ Standard straight.el bootstrapping. | |
(straight-use-package 'use-package) | |
(require 'use-package) | |
(use-package rustic | |
:straight t) | |
(use-package tree-sitter | |
:straight (tree-sitter :type git | |
:host github | |
:repo "ubolonton/emacs-tree-sitter" | |
:files ("lisp/*.el")) | |
:config (add-to-list 'tree-sitter-major-mode-language-alist '(rustic-mode . rust)) | |
:hook ((python-mode rustic-mode) . tree-sitter-hl-mode)) | |
(use-package tree-sitter-langs | |
:straight (tree-sitter-langs :type git | |
:host github | |
:repo "ubolonton/emacs-tree-sitter" | |
:files ("langs/*.el" "langs/queries")) | |
:after tree-sitter) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment