all repos — nixfiles @ 1582d9187dc21eecf0a06ebb805c937c0dbfda08

System and user configuration, managed by nix and home-manager

emacs: set native compilation variables for all platforms
Alan Pearce alan@alanpearce.eu
Sat, 29 Apr 2023 21:55:08 +0200
commit

1582d9187dc21eecf0a06ebb805c937c0dbfda08

parent

1ad92306476e246d73117a73d50039b8dd303321

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -163,14 +163,14 @@ ]);     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 = [