diff --git a/init.el b/init.el index 5c2a4fb..03c31be 100644 --- a/init.el +++ b/init.el @@ -99,7 +99,8 @@ (cpp "https://github.com/tree-sitter/tree-sitter-cpp") (java "https://github.com/tree-sitter/tree-sitter-java") (python "https://github.com/tree-sitter/tree-sitter-python") - (rust "https://github.com/tree-sitter/tree-sitter-rust"))) + (rust "https://github.com/tree-sitter/tree-sitter-rust") + (json "https://github.com/tree-sitter/tree-sitter-json"))) ;; Tree sitter major mode conversions (setq major-mode-remap-alist '((c-mode . c-ts-mode) @@ -107,7 +108,8 @@ (c-or-c++-mode . c-or-c++-ts-mode) (objc-mode . objc-ts-mode) (java-mode . java-ts-mode) - (rust-mode . rust-ts-mode)))) + (rust-mode . rust-ts-mode) + (json-mode . json-ts-mode)))) ;; c-ts-mode (use-package c-ts-mode @@ -365,6 +367,16 @@ visual states." ;; json (use-package json-mode) +;; sly +(use-package sly + :hook (lisp-mode . my/common-lisp-autoconnect-sly) + :autoload sly-connected-p + :init + (defun my/common-lisp-autoconnect-sly () + (unless (sly-connected-p) + (save-excursion (sly)))) + (setq inferior-lisp-program "/usr/bin/sbcl")) + ;; vterm (use-package vterm :bind ("C-x C-a" . vterm))