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

This commit is contained in:
Alexander Heldt committed 2023-09-09 10:43:42 +02:00
1 parent 9a8a2ca450
commit 4389f229a5
3 files changed
+19

No files matched your search

+12
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