summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2023-05-12 11:30:15 +0200
committerAlan Pearce2023-05-12 11:30:15 +0200
commit916660ae6144624bb61765ae782751b08725cf1b (patch)
treebb5499e14cb48ff0d0022f838628594dac1cb05f /user
parent5a0d553fd7554213e198399dd9120477f9a6182d (diff)
downloadnixfiles-916660ae6144624bb61765ae782751b08725cf1b.tar.lz
nixfiles-916660ae6144624bb61765ae782751b08725cf1b.tar.zst
nixfiles-916660ae6144624bb61765ae782751b08725cf1b.zip
use absolute path to byte-compile emacs init files
Diffstat (limited to 'user')
-rw-r--r--user/settings/emacs.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index bb73385b..e92ef01c 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -179,13 +179,13 @@ in
   xdg.configFile."emacs/early-init.el" = {
     source = ../emacs/early-init.el;
     onChange = ''
-      PATH="$PATH:/usr/libexec/DeveloperTools/" ${config.programs.emacs.finalPackage}/bin/emacs --batch --funcall batch-native-compile .config/emacs/early-init.el
+      PATH="$PATH:/usr/libexec/DeveloperTools/" ${config.programs.emacs.finalPackage}/bin/emacs --batch --funcall batch-native-compile $HOME/.config/emacs/early-init.el
     '';
   };
   xdg.configFile."emacs/init.el" = {
     source = ../emacs/init.el;
     onChange = ''
-      PATH="$PATH:/usr/libexec/DeveloperTools/" ${config.programs.emacs.finalPackage}/bin/emacs --batch --funcall batch-native-compile .config/emacs/init.el
+      PATH="$PATH:/usr/libexec/DeveloperTools/" ${config.programs.emacs.finalPackage}/bin/emacs --batch --funcall batch-native-compile $HOME/.config/emacs/init.el
     '';
   };