From 058648403c9646a3f6aea08542d67ad96e8accc1 Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Sun, 26 Dec 2021 14:47:32 -0500 Subject: [PATCH] tree sitter --- emacs/init.el | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/emacs/init.el b/emacs/init.el index df9b67e..51f0e31 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -295,18 +295,17 @@ (setq dashboard-banner-logo-title "Welcome to Emacs Dashboard") (setq dashboard-center-content t)) -(if (not (string-match "^aarch64-.*" system-configuration)) - (progn - ;; Tree-sitter - (use-package tree-sitter - :config - (global-tree-sitter-mode) - (add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode)) +;; Tree Sitter +(use-package tree-sitter + :straight (tree-sitter :type git :host github :repo "emacs-tree-sitter/emacs-tree-sitter") + :config + (global-tree-sitter-mode) + (add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode)) - ;; Tree-sitter-langs - (use-package tree-sitter-langs - :after (tree-sitter))) - ()) + ;; Tree-sitter-langs +(use-package tree-sitter-langs + :straight (tree-sitter-langs :type git :host github :repo "emacs-tree-sitter/tree-sitter-langs") + :after (tree-sitter)) ;; Org Mode (use-package org @@ -360,7 +359,8 @@ (add-hook 'markdown-mode-hook 'toc-org-mode)) (use-package ox-pandoc - :after (org)) + :after (org) + :if (executable-find "pandoc")) (use-package ox-jira :after (org))