From d26176849ff400ea3752d6b4da2437b8f6d6bb40 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 21 May 2024 18:40:12 +0200 Subject: emacs: silence byte-compiler warnings from extraConfig --- user/settings/emacs.nix | 8 ++++---- 1 file 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; [ -- cgit 1.4.1