Commit 9b691e2a14bf

Vincent Demeester <vincent@sbr.pm>
2024-04-05 19:02:04
tools/emacs: add combobulate to try it out…
it seems super nice, the only downside is, it doesn't support go (yet). Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 586249a
Changed files (2)
tools
users
vincent
tools/emacs/config/programming-treesitter.el
@@ -8,5 +8,33 @@
   (setq treesit-auto-install 'prompt)
   (global-treesit-auto-mode))
 
+(use-package treesit
+  :config
+  (use-package combobulate
+    :preface
+    (unless (package-installed-p 'combobulate)
+      (package-vc-install "https://github.com/mickeynp/combobulate"))
+    ;; You can customize Combobulate's key prefix here.
+    ;; Note that you may have to restart Emacs for this to take effect!
+    (setq combobulate-key-prefix "C-c o")
+
+    ;; Optional, but recommended.
+    ;;
+    ;; You can manually enable Combobulate with `M-x
+    ;; combobulate-mode'.
+    :hook
+      ((python-ts-mode . combobulate-mode)
+       (js-ts-mode . combobulate-mode)
+       (html-ts-mode . combobulate-mode)
+       (css-ts-mode . combobulate-mode)
+       (yaml-ts-mode . combobulate-mode)
+       (typescript-ts-mode . combobulate-mode)
+       (json-ts-mode . combobulate-mode)
+       (tsx-ts-mode . combobulate-mode)
+       (go-ts-mode . combobulate-mode))
+    ;; Amend this to the directory where you keep Combobulate's source
+    ;; code.
+    :load-path ("path-to-git-checkout-of-combobulate")))
+
 (provide 'programming-treesitter)
 ;;; programming-treesitter.el ends here
users/vincent/dev/emacs.nix
@@ -98,6 +98,7 @@ let
     mct
     modus-themes
     multi-vterm
+    multiple-cursors
     mwim
     nerd-icons
     nix-buffer