diff options
| author | 2024-11-22 23:18:09 -0800 | |
|---|---|---|
| committer | 2024-11-22 23:28:35 -0800 | |
| commit | 47737fd93cd6a0e39617cce05128217f23f65670 (patch) | |
| tree | 0efe34849c555c6d6dfb009be54470e64a86fa54 | |
| parent | 4b938b24dff4e844b4f4747b5a0211a974dbb982 (diff) | |
| download | new-dotfiles-47737fd93cd6a0e39617cce05128217f23f65670.tar.gz new-dotfiles-47737fd93cd6a0e39617cce05128217f23f65670.zip | |
Make zsh word movement keys work more like Emacs
| -rw-r--r-- | oni/home/config/common.scm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/oni/home/config/common.scm b/oni/home/config/common.scm index 594638c..e56eee7 100644 --- a/oni/home/config/common.scm +++ b/oni/home/config/common.scm @@ -89,7 +89,8 @@ (environment-variables '(("HISTFILE" . "$HOME/.zsh/histfile") ("HISTSIZE" . "1000") - ("SAVEHIST" . "1000"))) + ("SAVEHIST" . "1000") + ("WORDCHARS" . ""))) (zshrc (list (mixed-text-file @@ -112,6 +113,10 @@ "bindkey -e '^[w' x-copy-region-as-kill\n" "bindkey -e '^W' x-kill-region\n" "bindkey -e '^Y' x-yank\n" + "bindkey -e '^[f' emacs-forward-word\n" + "bindkey -e '^[F' emacs-forward-word\n" + "bindkey -e '^[b' emacs-backward-word\n" + "bindkey -e '^[B' emacs-backward-word\n" "autoload -Uz compinit\n" "compinit\n" "function horizontal-rule() {\n" |
