Skip to content

Commit

Permalink
Add bindings to boon-emacs.el (#133)
Browse files Browse the repository at this point in the history
* Use "@" instead of "x" for `boon-switch-mark'

"x" is shadowed by `boon-command-map'. "@" was the shortcut for
`boon-switch-mark' in version 1 of boon-emacs.el, so it feels like a natural
choice to return to that.

* Use "^" for `delete-indentation'

The default keybinding for this command is M-^.

* Use "\\" for `indent-region'

The default keybinding for this is C-M-\.

* Use "v"/"V" for `scroll-up-command'/`scroll-down-command'

The default keybindings for these are C-v and M-v.
  • Loading branch information
dkellner authored Jan 7, 2024
1 parent ea3b39b commit 9c9ecad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion boon-emacs.el
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
(define-key boon-select-map "T" 'boon-select-org-tree)
(define-key boon-select-map "G" 'boon-select-org-table-cell)

(define-key boon-moves-map "x" 'boon-switch-mark)
(define-key boon-moves-map "@" 'boon-switch-mark)
(define-key boon-moves-map "p" '("previous" . previous-line))
(define-key boon-moves-map "n" '("next" . next-line))
(define-key boon-moves-map "{" 'backward-paragraph)
Expand Down Expand Up @@ -110,6 +110,10 @@
(define-key boon-command-map "?" 'describe-mode)
(define-key boon-command-map "h" 'describe-mode)
(define-key boon-command-map "q" '("quit" . quit-window))
(define-key boon-command-map "^" 'delete-indentation)
(define-key boon-command-map "\\" 'indent-region)
(define-key boon-command-map "v" 'scroll-up-command)
(define-key boon-command-map "V" 'scroll-down-command)

(define-key indent-rigidly-map "k" 'indent-rigidly-right)
(define-key indent-rigidly-map "l" 'indent-rigidly-left)
Expand Down

0 comments on commit 9c9ecad

Please sign in to comment.