pinwheel: Add nix-mode and hook it up with eglot

This commit is contained in:
Alexander Heldt
2023-09-09 10:12:44 +02:00
parent 9a8a2ca450
commit 4389f229a5
3 changed files with 19 additions and 0 deletions

View File

@@ -398,6 +398,9 @@ https://github.com/justbur/emacs-which-key
)
(use-package eglot
:config
;; Ensure `nil` is in your PATH.
(add-to-list 'eglot-server-programs '(nix-mode . ("nil")))
:hook (
(eglot-managed-mode . alex/eglot-on-save)
(go-mode . eglot-ensure)
@@ -413,3 +416,12 @@ https://github.com/justbur/emacs-which-key
)
)
#+END_SRC
** Nix
#+BEGIN_SRC emacs-lisp
(use-package nix-mode
:mode "\\.nix$"
:hook (
(nix-mode . eglot-ensure)
)
)
#+END_SRC