summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
authorAlan Pearce2023-04-29 21:55:08 +0200
committerAlan Pearce2023-04-30 19:38:15 +0200
commit1582d9187dc21eecf0a06ebb805c937c0dbfda08 (patch)
treee9f92e926e847799e97ce1c51b306ed372620f78 /user/settings
parent1ad92306476e246d73117a73d50039b8dd303321 (diff)
downloadnixfiles-1582d9187dc21eecf0a06ebb805c937c0dbfda08.tar.lz
nixfiles-1582d9187dc21eecf0a06ebb805c937c0dbfda08.tar.zst
nixfiles-1582d9187dc21eecf0a06ebb805c937c0dbfda08.zip
emacs: set native compilation variables for all platforms
Diffstat (limited to 'user/settings')
-rw-r--r--user/settings/emacs.nix6
1 files 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 = [