home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit 9b691e2a14bfa3ff70ece438dffedce7f8d0fcd4
parent 586249a7ea1923222ef965498e7408c33ce33cbe
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri,  5 Apr 2024 19:02:04 +0200

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>

Diffstat:
Mtools/emacs/config/programming-treesitter.el | 28++++++++++++++++++++++++++++
Musers/vincent/dev/emacs.nix | 1+
2 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/tools/emacs/config/programming-treesitter.el b/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 diff --git a/users/vincent/dev/emacs.nix b/users/vincent/dev/emacs.nix @@ -98,6 +98,7 @@ let mct modus-themes multi-vterm + multiple-cursors mwim nerd-icons nix-buffer