all repos — nixfiles @ 916660ae6144624bb61765ae782751b08725cf1b

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

use absolute path to byte-compile emacs init files
Alan Pearce alan@alanpearce.eu
Fri, 12 May 2023 11:30:15 +0200
commit

916660ae6144624bb61765ae782751b08725cf1b

parent

5a0d553fd7554213e198399dd9120477f9a6182d

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

jump to
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -179,13 +179,13 @@ ];   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
     '';
   };