Skip to content

Instantly share code, notes, and snippets.

@ubolonton
Created October 26, 2020 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ubolonton/a4cfe85782f40e280570b3ef393ded5f to your computer and use it in GitHub Desktop.
Save ubolonton/a4cfe85782f40e280570b3ef393ded5f to your computer and use it in GitHub Desktop.
Minimal ~/.emacs.d/init.el with tree-sitter setup through MELPA
(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