Skip to content

Commit

Permalink
Merge pull request #337 from rbreaves/dev
Browse files Browse the repository at this point in the history
- Added emacs style, courtesy bryanhpchiang. Closes #336
  • Loading branch information
rbreaves authored Nov 29, 2020
2 parents eb96ad0 + dd32a6f commit 15adc5b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
10 changes: 10 additions & 0 deletions windows/kinto.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,16 @@ GroupAdd, intellij, ahk_exe idea64.exe
!Right::Send ^{Right}
!+Right::Send ^+{Right}

; emacs style
#n::Send {Down}
#p::Send {Up}
#f::Send {Right}
#b::Send {Left}
#a::Send {Home}
#e::Send {End}
#d::Send {Delete}
#k::Send +{End}{Backspace}

; Cmd+Space Alternative
$^Space::Send ^{Esc}

Expand Down
12 changes: 10 additions & 2 deletions xkeysnail-config/kinto.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,21 @@
# K("M-Grave") : K("C-Shift-Tab"), # Chromebook/IBM - In-App Tab switching
K("Super-Tab"): K("LC-Tab"), # Default not-chromebook
K("Super-Shift-Tab"): K("LC-Shift-Tab"), # Default not-chromebook

# emacs style
K("Super-a"): K("Home"), # Beginning of Line
K("Super-e"): K("End"), # End of Line
K("Super-b"): K("Left"),
K("Super-f"): K("Right"),
K("Super-n"): K("Down"),
K("Super-p"): K("Up"),
K("Super-k"): [K("Shift-End"), K("Backspace")],
K("Super-d"): K("Delete"),

# Wordwise
K("RC-Left"): K("Home"), # Beginning of Line
K("Super-a"): K("Home"), # Beginning of Line
K("RC-Shift-Left"): K("Shift-Home"), # Select all to Beginning of Line
K("RC-Right"): K("End"), # End of Line
K("Super-e"): K("End"), # End of Line
K("RC-Shift-Right"): K("Shift-End"), # Select all to End of Line
# K("RC-Left"): K("C-LEFT_BRACE"), # Firefox-nw - Back
# K("RC-Right"): K("C-RIGHT_BRACE"), # Firefox-nw - Forward
Expand Down

0 comments on commit 15adc5b

Please sign in to comment.