bump .emacs.d made ec alias for operning files in existing emacs frame.

This commit is contained in:
Ivan Malison 2014-10-27 03:21:33 -07:00
parent 9b5bcafd7c
commit d3aaeb420f
3 changed files with 4 additions and 7 deletions

@ -1 +1 @@
Subproject commit 28d5418644923134432ec8cbf943c12aeae341e7 Subproject commit c46c2aa8f5606ee6941ab4842b1ab56492666cfd

View File

@ -1,11 +1,12 @@
alias emacs='cemacs' alias emacs='cemacs'
alias cemacs='_emacs -c -n' alias cemacs='_emacs -c -n'
alias temacs='_emacs -t' alias temacs='_emacs -t'
alias ec='_emacs -n '
function _emacs { function _emacs {
local directory="$(git rev-parse --show-toplevel 2> /dev/null || pwd)" local directory="$(git rev-parse --show-toplevel 2> /dev/null || pwd)"
local server_name="$(_dot_directory $directory)" local server_name="$(_dot_directory $directory)"
test -z "$(ps aux | grep -v grep | grep -i "emacs -nw --daemon=.*$server_name$")" && echo "Starting emacs with server name \'$server_name'" && \emacs --daemon="$server_name" test -z "$(ps aux | grep -v grep | grep -i "emacs -nw --daemon=.*$server_name$")" && echo "Starting emacs with server name '$server_name'" && \emacs --daemon="$server_name"
emacsclient $* --server-file="$server_name" emacsclient $* --server-file="$server_name"
} }

View File

@ -290,10 +290,6 @@ function reload_root_agent {
as_user 'root' "/bin/launchctl load '$1'" as_user 'root' "/bin/launchctl load '$1'"
} }
function ec {
emacsclient -n $1 > /dev/null
}
function enable_access_for_assistive_devices { function enable_access_for_assistive_devices {
local bundle_identifier=$(/usr/libexec/PlistBuddy -c 'Print CFBundleIdentifier' "$1/Contents/Info.plist") local bundle_identifier=$(/usr/libexec/PlistBuddy -c 'Print CFBundleIdentifier' "$1/Contents/Info.plist")
local where_clause="where service='kTCCServiceAccessibility' and client='$bundle_identifier'" local where_clause="where service='kTCCServiceAccessibility' and client='$bundle_identifier'"