bump .emacs.d made ec alias for operning files in existing emacs frame.
This commit is contained in:
Submodule dotfiles/emacs.d updated: 28d5418644...c46c2aa8f5
@@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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'"
|
||||||
|
Reference in New Issue
Block a user