all repos — nixfiles @ 88a7c8f35fc9528aa655ad12bf1fe85a5571b5c3

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

rcup: Use `Emacs` command for building configuration if exists `emacs` calls /usr/bin/emacs, which is too old. This relies on an Emacs application being added to $PATH

Alan Pearce
commit

88a7c8f35fc9528aa655ad12bf1fe85a5571b5c3

parent

dbb463c35e132c609f53047b0de4a661d344f21a

1 file changed, 4 insertions(+), 2 deletions(-)

jump to
M hooks/post-up/emacshooks/post-up/emacs
@@ -1,6 +1,8 @@
-#!/usr/bin/env zsh +#!/bin/sh -if [[ -s $commands[emacs] ]] +EMACS_COMMAND=$(which Emacs || which emacs) + +if [[ -s $EMACS_COMMAND ]] then pushd ~/.emacs.d emacs --batch --eval "(progn