aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2023-03-06 18:39:51 +0100
committerMartin Polden <mpolden@mpolden.no>2023-03-06 18:39:51 +0100
commitd84b76d879b361ea1e64f6a3459e2b879f69633e (patch)
tree980e68bd5c85cd9c63baaaab33ab6e8bf31626f4
parentca2af7e78f6c08b27cc6259627e6359f61095437 (diff)
zsh: always use emacs keybindings
-rw-r--r--zshrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/zshrc b/zshrc
index e634e78..54e6c57 100644
--- a/zshrc
+++ b/zshrc
@@ -266,9 +266,12 @@ case "$TERM" in
esac
#
-# External Editor
+# Editor
#
+# Always use Emacs keybindings (never consider $EDITOR)
+bindkey -e
+
# Allow command line editing in an external editor.
autoload -Uz edit-command-line
zle -N edit-command-line