summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
authorAlan Pearce2024-11-30 09:48:22 +0100
committerAlan Pearce2024-11-30 09:48:22 +0100
commit885e0bf1f158e236706c1b83071080b21c3dc92a (patch)
tree1e52a942fc913aad10f5b531ab10674c31f344fc /user/settings
parent37765669565e48fb8d9ee51bad6fade1201d963b (diff)
downloadnixfiles-885e0bf1f158e236706c1b83071080b21c3dc92a.tar.lz
nixfiles-885e0bf1f158e236706c1b83071080b21c3dc92a.tar.zst
nixfiles-885e0bf1f158e236706c1b83071080b21c3dc92a.zip
emacs: fix dired error on darwin
Diffstat (limited to 'user/settings')
-rw-r--r--user/settings/emacs.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index cc9deab6..26071562 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -197,12 +197,11 @@ in
     };
     extraConfig = ''
       (with-eval-after-load 'editorconfig
-        (defvar editorconfig-exec-path "${pkgs.editorconfig-core-c}/bin/editorconfig"))
+        (setq editorconfig-exec-path "${pkgs.editorconfig-core-c}/bin/editorconfig"))
     '' + lib.optionalString stdenv.isDarwin ''
-      (with-eval-after-load 'files
-        (defvar insert-directory-program "${pkgs.coreutils-prefixed}/bin/gls"))
       (with-eval-after-load 'dired
-        (defvar dired-use-ls-dired t))
+        (setq insert-directory-program "${pkgs.coreutils-prefixed}/bin/gls"
+              dired-use-ls-dired t))
     '';
   };
   home.packages = with pkgs; [