Skip to content

Commit

Permalink
readme: add tips on binding keys
Browse files Browse the repository at this point in the history
For #2
  • Loading branch information
Overdr0ne committed Feb 21, 2023
1 parent 62b7911 commit a2b1218
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ In addition, various keyword arguments may be used to modify the behavior of the
Tips on Binding Keys
=======

One way to bind your holymotions is to use [prefix keys](https://www.gnu.org/software/emacs/manual/html_node/elisp/Prefix-Keys.html). An empty `holymotion-map` has been provided for this purpose. So you could bind `holymotion-map` to some prefix key, like `M-h`, then bind all of your holymotions to their normal analogs: `C-n` to `holymotion-next-line`, `C-p` to `holymotion-previous-line`, etc.

Personally, I have created an equivalent holymotion for most of my standard motions. Then, I just add a modifier when I want the holymotion version. For example, if you use `C-n` for `next-line`, you could bind `C-M-n` for your `holymotion-next-line`. Another scheme I’ve used, if you have the `Alt`(`A-`) modifier available to you, you could just use that as your modifier instead, since no keys are bound to `Alt` by default in Emacs.

Credits
Expand Down

0 comments on commit a2b1218

Please sign in to comment.