summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2024-05-21 18:40:12 +0200
committerAlan Pearce2024-05-21 18:40:12 +0200
commitd26176849ff400ea3752d6b4da2437b8f6d6bb40 (patch)
treef44ac991e0a0c9dde6aaadb47fcf3cda050dfdfa /user
parentcb1f99a3c0a622042604efc3b6ede90fd7df262d (diff)
downloadnixfiles-d26176849ff400ea3752d6b4da2437b8f6d6bb40.tar.lz
nixfiles-d26176849ff400ea3752d6b4da2437b8f6d6bb40.tar.zst
nixfiles-d26176849ff400ea3752d6b4da2437b8f6d6bb40.zip
emacs: silence byte-compiler warnings from extraConfig
Diffstat (limited to 'user')
-rw-r--r--user/settings/emacs.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index bab94999..2b8311ed 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -185,15 +185,15 @@ in
     };
     extraConfig = ''
       (with-eval-after-load 'editorconfig
-        (setq editorconfig-exec-path "${pkgs.editorconfig-core-c}/bin/editorconfig"))
+        (defvar editorconfig-exec-path "${pkgs.editorconfig-core-c}/bin/editorconfig"))
       (when (featurep 'native-compile)
-        (setq native-compile-target-directory "${nativeCompileDirectory}")
+        (defvar native-compile-target-directory "${nativeCompileDirectory}")
         (add-to-list 'native-comp-eln-load-path "${nativeCompileDirectory}" :append))
     '' + lib.optionalString stdenv.isDarwin ''
       (with-eval-after-load 'files
-        (setq insert-directory-program "${pkgs.coreutils-prefixed}/bin/gls"))
+        (defvar insert-directory-program "${pkgs.coreutils-prefixed}/bin/gls"))
       (with-eval-after-load 'dired
-        (setq dired-use-ls-dired t))
+        (defvar dired-use-ls-dired t))
     '';
   };
   home.packages = with pkgs; [