emacs: add treesitter support

This commit is contained in:
caem 2025-02-10 01:32:07 +01:00
parent abca633fc6
commit b5e00af8ec
Signed by: caem
GPG key ID: 69A830D03203405F
2 changed files with 8 additions and 2 deletions

View file

@ -10,9 +10,15 @@
(add-to-list 'default-frame-alist
'(font . "Go Mono Nerd Font-12"))
;; Temporary theme. Replace later.
(use-package darktooth-theme
:ensure t
:config
(load-theme 'darktooth-dark t)
(set-face-background 'hl-line "#262626")) ;; darktooth-background-0
(use-package tree-sitter :ensure t)
(use-package tree-sitter-langs :ensure t)
(setq treesit-extra-load-path
(file-expand-wildcards (concat package-user-dir "/tree-sitter-langs*/bin")))
(add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode)

View file

@ -18,7 +18,7 @@
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
'("melpa" . "https://melpa.org/packages/") t)
(load (expand-file-name "./appearance.el" conf-home))
(load (expand-file-name "./annoyances.el" conf-home))