[Shell] Remove tabs from emacs.sh

This commit is contained in:
Ivan Malison 2016-11-26 09:54:34 -08:00
parent 33b619663e
commit 7e646d2fd6
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -2,7 +2,6 @@
# deprecated system for starting emacs that made the $EDITOR # deprecated system for starting emacs that made the $EDITOR
# environment variable work for git and other things # environment variable work for git and other things
# This approach is no longer in use. # This approach is no longer in use.
# alias emacs='_emacs -c -n ' # alias emacs='_emacs -c -n '
# is_osx && alias emacs='cocoa_emacs' # is_osx && alias emacs='cocoa_emacs'
@ -76,7 +75,7 @@ function emacs_make_frame_if_none_exists {
function emacs_ensure_running_with_frame { function emacs_ensure_running_with_frame {
test -z "$(emacs_get_running_instances)" && emacs || \ test -z "$(emacs_get_running_instances)" && emacs || \
emacs_make_frame_if_none_exists "$(emacs_get_running_instances | head -n1)" emacs_make_frame_if_none_exists "$(emacs_get_running_instances | head -n1)"
} }
function execute_elisp { function execute_elisp {
@ -99,7 +98,7 @@ function emacs_get_running_instances {
function emacs_open { function emacs_open {
if ! emacs_daemon_exists; then if ! emacs_daemon_exists; then
emacs emacs
fi fi
emacs_make_frame_if_none_exists emacs_make_frame_if_none_exists
[ ! -z "$*" ] && _emacs "$@" [ ! -z "$*" ] && _emacs "$@"
@ -112,11 +111,11 @@ function time_emacs {
function emacs_editor { function emacs_editor {
local client_path="$(which emacsclient)" local client_path="$(which emacsclient)"
if is_osx; then if is_osx; then
reattach-to-user-namespace "$client_path" "$@" reattach-to-user-namespace "$client_path" "$@"
else else
"$client_path" "$@" "$client_path" "$@"
fi fi
} }
function emacs_pager { function emacs_pager {