Changed comment about terminal blocking.

This commit is contained in:
tastytea 2019-05-08 16:17:52 +02:00
parent 274fc60df9
commit db172bebd6
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -190,10 +190,10 @@ export EDITOR="${VISUAL}"
----
{{< highlight zsh >}}
# If ${VISUAL} contains emacs{client,remote}, return immediately to terminal.
if [[ "${VISUAL}" =~ "emacs(client|remote)" ]]; then
alias e="${VISUAL} -n"
if [[ "${VISUAL}" =~ "emacsremote$" ]]; then
# Don't block the terminal until the file is closed.
alias se="${VISUAL} -n --sudo"
elif which emacsremote >/dev/null && [[ -z "${SSH_CONNECTION}" ]]; then
# Edit files as root in the Emacs instance run by the current user.