Skip to content

Commit f4edf43

Browse files
eapolinarioclaude
andcommitted
feat(xremap): add Emacs word motion and kill-line bindings for Chromium
Adds M-f, M-b, M-d, M-BackSpace, and C-k Emacs keybindings. C-k uses wtype via launch to properly hold Shift around End before releasing it, working around xremap's sequence mode not applying modifiers correctly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent daa63b2 commit f4edf43

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nixos/home/eduardo/default.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
bitwarden-cli
1515
wlr-randr
1616
wl-clipboard
17+
wtype
1718
emacs30-pgtk
1819

1920
# Dev tools
@@ -177,6 +178,11 @@
177178
remap = {
178179
"C-a" = "Home";
179180
"C-e" = "End";
181+
"M-f" = "C-Right";
182+
"M-b" = "C-Left";
183+
"M-d" = "C-Delete";
184+
"M-BackSpace" = "C-BackSpace";
185+
"C-k" = { launch = ["wtype" "-M" "shift" "-k" "End" "-m" "shift" "-k" "BackSpace"]; };
180186
};
181187
}
182188
];

0 commit comments

Comments
 (0)