emacs: silence byte-compiler warnings from extraConfig
Alan Pearce alan@alanpearce.eu
Tue, 21 May 2024 18:40:12 +0200
1 files changed, 4 insertions(+), 4 deletions(-)
jump to
M user/settings/emacs.nix → user/settings/emacs.nix
@@ -185,15 +185,15 @@ }; }; 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; [