mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 09:26:42 +00:00
added emacsclient-wrapper to bin directory
This commit is contained in:
13
bin/emacsclient-wrapper
Executable file
13
bin/emacsclient-wrapper
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Defaults
|
||||
EMACSCLIENT="emacsclient"
|
||||
ALTERNATE_EDITOR="nano"
|
||||
|
||||
# Set to binary bundled in Emacs.app if it exists
|
||||
if [ -f "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient" ]; then
|
||||
EMACSCLIENT="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient"
|
||||
fi
|
||||
|
||||
# Execute emacsclient
|
||||
exec $EMACSCLIENT --alternate-editor=$ALTERNATE_EDITOR "$@"
|
||||
Reference in New Issue
Block a user