From 1582d9187dc21eecf0a06ebb805c937c0dbfda08 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 29 Apr 2023 21:55:08 +0200 Subject: emacs: set native compilation variables for all platforms --- user/settings/emacs.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix index 5f8116be..7024e6d6 100644 --- a/user/settings/emacs.nix +++ b/user/settings/emacs.nix @@ -163,14 +163,14 @@ in extraConfig = '' (with-eval-after-load 'editorconfig (setq editorconfig-exec-path "${pkgs.editorconfig-core-c}/bin/editorconfig")) + (setq 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")) (with-eval-after-load 'dired (setq dired-use-ls-dired t)) - (setq exec-path (parse-colon-path (setenv "PATH" "${pkgs.lib.readFile darwinPath}")) - native-compile-target-directory "${nativeCompileDirectory}") - (add-to-list 'native-comp-eln-load-path "${nativeCompileDirectory}" :append) + (setq exec-path (parse-colon-path (setenv "PATH" "${pkgs.lib.readFile darwinPath}"))) ''; }; home.packages = [ -- cgit 1.4.1