From d7f2c402900ff888398e870ea5849f6e2779d2e0 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 15 Sep 2023 15:28:32 +0000 Subject: [PATCH] add nix mode --- config/emacs/emacs.org | 5 +++++ config/emacs/init.el | 3 +++ 2 files changed, 8 insertions(+) diff --git a/config/emacs/emacs.org b/config/emacs/emacs.org index 6201080d..d5a64a6b 100644 --- a/config/emacs/emacs.org +++ b/config/emacs/emacs.org @@ -507,6 +507,11 @@ make sure to setup authinfo :mode "\\.js\\'" :hook (js2-mode . lsp-deferred)) #+end_src +***** Nix +#+begin_src emacs-lisp +(use-package nix-mode + :mode "\\.nix\\'") +#+end_src *** Commenter #+begin_src emacs-lisp (use-package evil-nerd-commenter diff --git a/config/emacs/init.el b/config/emacs/init.el index fd3f3b36..7f561101 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -433,6 +433,9 @@ :mode "\\.js\\'" :hook (js2-mode . lsp-deferred)) +(use-package nix-mode + :mode "\\.nix\\'") + (use-package evil-nerd-commenter :bind ("M-/" . evilnc-comment-or-uncomment-lines))