about summary refs log tree commit diff
path: root/modules/common/emacs
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-02-19 23:34:25 +0300
committerAzat Bahawi <azat@bahawi.net>2023-02-19 23:34:25 +0300
commitcc1d3db5f2a6f05ca68818dc2303dd85fc3db06d (patch)
tree6433af1654e8ae847990b26445b03fa9665aa674 /modules/common/emacs
parent2023-02-19 (diff)
2023-02-19
Diffstat (limited to 'modules/common/emacs')
-rw-r--r--modules/common/emacs/default.nix13
-rw-r--r--modules/common/emacs/doom/init.el4
2 files changed, 8 insertions, 9 deletions
diff --git a/modules/common/emacs/default.nix b/modules/common/emacs/default.nix
index bdbbf43..bc4acdc 100644
--- a/modules/common/emacs/default.nix
+++ b/modules/common/emacs/default.nix
@@ -29,7 +29,7 @@ in {
               # by the project's flake/shell.
               extraBins = with pkgs;
                 [
-                  enchant # :checkers (spell +enchant)
+                  (aspellWithDicts (p: with p; [en ru])) # :checkers (spell +aspell)
                   (python3.withPackages (p:
                     with p; [
                       black # :lang python :editor format
@@ -61,6 +61,7 @@ in {
                   json-language-server # :lang (json +lsp)
                   nix-language-server # :lang (nix +lsp)
                   nixfmt # :lang nix :editor format
+                  nodePackages.eslint # :lang (json +lsp)
                   nodePackages.js-beautify # :lang web
                   nodePackages.prettier # :editor format
                   nodePackages.stylelint # :lang web
@@ -139,13 +140,13 @@ in {
           ];
           onChange = with config.hm.programs; ''
             if [[ -x "''${XDG_CONFIG_HOME:~/.config}/emacs/bin/doom" ]]; then
-               oldpath="$PATH"
-               export PATH="''${PATH:-/bin}:${emacs.package}/bin:${git.package}/bin"
+              oldpath="$PATH"
+              export PATH="''${PATH:-/bin}:${emacs.package}/bin:${git.package}/bin"
 
-               "''${XDG_CONFIG_HOME:~/.config}/emacs/bin/doom" sync
+              "''${XDG_CONFIG_HOME:~/.config}/emacs/bin/doom" sync
 
-               export PATH="$oldpath"
-               unset oldpath
+              export PATH="$oldpath"
+              unset oldpath
             fi
           '';
         };
diff --git a/modules/common/emacs/doom/init.el b/modules/common/emacs/doom/init.el
index cdab069..764c25e 100644
--- a/modules/common/emacs/doom/init.el
+++ b/modules/common/emacs/doom/init.el
@@ -49,9 +49,7 @@
 
        :checkers
        syntax
-       (spell +enchant
-              +everywhere
-              +flyspell)
+       (spell +aspell +everywhere)
        grammar
 
        :tools

Consider giving Nix/NixOS a try! <3