Skip to content

Commit

Permalink
Fix inspector keybinds (and add a couple)
Browse files Browse the repository at this point in the history
SPC is kbd notation, in a pure keybind it actually means `S P C`. To
bind something to the space key we either use an actual space or use
`(kbd "SPC")`.

Also added S-SPC and page-down/up keys, since it most view-like modes
these are also bound to next and previous pages.
  • Loading branch information
Malabarba committed Jul 31, 2015
1 parent 0dae6c0 commit 9b5d14f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cider-inspector.el
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,12 @@ The page size can be also changed interactively within the inspector."
(define-key map [mouse-1] #'cider-inspector-operate-on-click)
(define-key map "l" #'cider-inspector-pop)
(define-key map "g" #'cider-inspector-refresh)
(define-key map "SPC" #'cider-inspector-next-page)
(define-key map "M-SPC" #'cider-inspector-prev-page)
;; Page-up/down
(define-key map [next] #'cider-inspector-next-page)
(define-key map [prior] #'cider-inspector-prev-page)
(define-key map " " #'cider-inspector-next-page)
(define-key map (kbd "M-SPC") #'cider-inspector-prev-page)
(define-key map (kbd "S-SPC") #'cider-inspector-prev-page)
(define-key map "s" #'cider-inspector-set-page-size)
(define-key map [tab] #'cider-inspector-next-inspectable-object)
(define-key map "\C-i" #'cider-inspector-next-inspectable-object)
Expand Down

0 comments on commit 9b5d14f

Please sign in to comment.