Created
October 26, 2020 11:51
-
-
Save ubolonton/a4cfe85782f40e280570b3ef393ded5f to your computer and use it in GitHub Desktop.
Minimal ~/.emacs.d/init.el with tree-sitter setup through MELPA
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
(require 'package) | |
(dolist (source '(("melpa" . "https://melpa.org/packages/"))) | |
(add-to-list 'package-archives source t)) | |
(package-initialize) | |
(when (not package-archive-contents) | |
(package-refresh-contents)) | |
(unless (package-installed-p 'tree-sitter) | |
(package-install 'tree-sitter) | |
(package-install 'tree-sitter-langs)) | |
(require 'tree-sitter) | |
(require 'tree-sitter-langs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment