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 alan@alanpearce.uk
Wed, 22 Feb 2017 11:19:43 +0100
1 files changed, 4 insertions(+), 2 deletions(-)
jump to
M hooks/post-up/emacs → hooks/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