aboutsummaryrefslogtreecommitdiffstats
path: root/oni
diff options
context:
space:
mode:
authorGravatar Tom Willemse2024-11-22 23:18:09 -0800
committerGravatar Tom Willemse2024-11-22 23:28:35 -0800
commit47737fd93cd6a0e39617cce05128217f23f65670 (patch)
tree0efe34849c555c6d6dfb009be54470e64a86fa54 /oni
parent4b938b24dff4e844b4f4747b5a0211a974dbb982 (diff)
downloadnew-dotfiles-47737fd93cd6a0e39617cce05128217f23f65670.tar.gz
new-dotfiles-47737fd93cd6a0e39617cce05128217f23f65670.zip
Make zsh word movement keys work more like Emacs
Diffstat (limited to 'oni')
-rw-r--r--oni/home/config/common.scm7
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"