From 88a7c8f35fc9528aa655ad12bf1fe85a5571b5c3 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 22 Feb 2017 11:19:43 +0100 Subject: 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 --- hooks/post-up/emacs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'hooks') diff --git a/hooks/post-up/emacs b/hooks/post-up/emacs index cb9c091..53de6da 100755 --- a/hooks/post-up/emacs +++ b/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 -- cgit 1.4.1