summaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
authorTimo Wilken2022-10-20 20:24:35 +0200
committerTimo Wilken2022-10-20 20:24:35 +0200
commit40409aee8ee79ac25ab5eb6fbd189ad2b763bb10 (patch)
treeb5e7a0b6393c95607112cddf7b9cf13f09f669ea /zshrc
parent2c05fb998bed67ca8630f304aca35483fbfc8158 (diff)
Declare `$ASYNC_EDITOR` for non-blocking emacsclient
This is useful in a few places, such as the shell and "ranger", the file manager.
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/zshrc b/zshrc
index 24ef3dec..607fec77 100644
--- a/zshrc
+++ b/zshrc
@@ -81,9 +81,9 @@ else
fi
## Aliases
-# Tell emacsclient to return immediately after opening the file. Can't put this
-# in $EDITOR as many programs expect $EDITOR to exit only when done editing.
-alias em='emacsclient -qcn'
+# Use ASYNC_EDITOR so I can continue using the shell while the editor
+# remains open in a separate window.
+alias em="$ASYNC_EDITOR"
alias se='sudo -e'
alias ls='\ls --color=auto -h'
alias la='\ls --color=auto -hA'