diff options
-rwxr-xr-x | hooks/post-up/emacs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hooks/post-up/emacs b/hooks/post-up/emacs index cb9c0916..53de6dad 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 |