diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2025-05-19 12:55:07 +0200 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2025-05-19 12:55:07 +0200 |
| commit | ac647c847ae17056e0cc91cd6e26d0a4778f9a53 (patch) | |
| tree | 25c605f80aace6d140cfb50a499e34a8fe8d54a2 | |
| parent | 010c0a2aa4508610490de2c4ed5d69481d013113 (diff) | |
Eglot Keybindings
Attach keybindings to the `eglot` package instead of every `eglot`
enabled major mode. This simplifies the configuration. Also, we were
doing it wrong before anyway - we want to attach a keybinding to the
`eglot-mode-map` and not globally.
| -rw-r--r-- | config/emacs/init.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/emacs/init.el b/config/emacs/init.el index dbcd039..bd8ea19 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -150,6 +150,10 @@ ;;; -- General Development -- +(use-package eglot + :bind (:map eglot-mode-map + ("M-q" . eglot-format))) + (use-package ligature :if (init/dev) :ensure t @@ -213,7 +217,6 @@ :if (init/dev) :ensure t :after (tuareg) - :bind (("M-q" . eglot-format)) :hook (tuareg-mode . ocaml-eglot) (ocaml-eglot . eglot-ensure)) @@ -223,7 +226,6 @@ (use-package rust-ts-mode :if (init/dev) :mode "\\.rs\\'" - :bind (("M-q" . eglot-format)) :hook (rust-ts-mode . eglot-ensure)) |
