mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 10:26:42 +00:00
15 lines
384 B
Bash
Executable File
15 lines
384 B
Bash
Executable File
#!/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 env TERM=screen-24bit \
|
|
$EMACSCLIENT --alternate-editor=$ALTERNATE_EDITOR "$@"
|