about summary refs log tree commit diff
path: root/modules/emacs/doom
diff options
context:
space:
mode:
Diffstat (limited to 'modules/emacs/doom')
-rw-r--r--modules/emacs/doom/config.el56
1 files changed, 36 insertions, 20 deletions
diff --git a/modules/emacs/doom/config.el b/modules/emacs/doom/config.el
index 51d1c47..206e5cd 100644
--- a/modules/emacs/doom/config.el
+++ b/modules/emacs/doom/config.el
@@ -49,13 +49,26 @@
       lsp-modeline-code-actions-enable nil)
 
 ;;
+;;; Nix
+;;
+
+(after! nix
+  (after! lsp-mode
+    (add-to-list 'lsp-language-id-configuration '(nix-mode . "nix"))
+    (lsp-register-client (make-lsp-client
+                          :new-connection (lsp-stdio-connection "nixd")
+                          :activation-fn (lsp-activate-on "nix")
+                          :server-id 'nixd
+                          :major-modes 'nix-mode))
+    (add-hook 'nix-mode-hook 'lsp-deferred)))
+
+;;
 ;;; Go
 ;;
 
-(setq lsp-go-analyses
-  '((unsedvariable . t)
-    (unusedparams . t)
-    (unusedwrite . t)))
+(setq lsp-go-analyses '((unsedvariable . t)
+                        (unusedparams . t)
+                        (unusedwrite . t)))
 
 ;;
 ;;; Org
@@ -146,12 +159,12 @@
 (use-package! nickel-mode
   :config
   (after! lsp-mode
-    (add-to-list 'lsp-language-id-configuration '(nickel-mode . "nickel")
-      (lsp-register-client (make-lsp-client
-                             :new-connection (lsp-stdio-connection "nls")
-                             :activation-fn (lsp-activate-on "nickel")
-                             :server-id 'nls
-                             :major-modes 'nickel-mode)))
+    (add-to-list 'lsp-language-id-configuration '(nickel-mode . "nickel"))
+    (lsp-register-client (make-lsp-client
+                          :new-connection (lsp-stdio-connection "nls")
+                          :activation-fn (lsp-activate-on "nickel")
+                          :server-id 'nls
+                          :major-modes 'nickel-mode))
     (add-hook 'nickel-mode-hook 'lsp-deferred)))
 
 ;;
@@ -181,16 +194,19 @@
       elfeed-goodies/entry-pane-position 'bottom)
 
 (add-hook! 'elfeed-new-entry-hook
-           '((elfeed-make-tagger :before "2 weeks ago"
-                                 :remove 'unread)
-             (elfeed-make-tagger :feed-title "SberMarket Tech"
-                                 :entry-title (not ".*(DevOps|Golang).*")
-                                 :add 'junk
-                                 :remove 'unread)
-             (elfeed-make-tagger :feed-title "dotconferences"
-                                 :entry-title (not ".*dotGo.*")
-                                 :add 'junk
-                                 :remove 'unread)))
+           '((elfeed-make-tagger
+              :before "2 weeks ago"
+              :remove 'unread)
+             (elfeed-make-tagger
+              :feed-title "SberMarket Tech"
+              :entry-title (not ".*(DevOps|Golang).*")
+              :add 'junk
+              :remove 'unread)
+             (elfeed-make-tagger
+              :feed-title "dotconferences"
+              :entry-title (not ".*dotGo.*")
+              :add 'junk
+              :remove 'unread)))
 
 ;;
 ;;; mu4e

Consider giving Nix/NixOS a try! <3