hackernews: revamped via read-only bindings

This commit is contained in:
condy 2020-11-14 20:55:25 +08:00 committed by Pierre Neidhardt
parent 18644e050c
commit e134061f9e
1 changed files with 2 additions and 7 deletions

View File

@ -36,7 +36,7 @@
;;;###autoload
(defun evil-collection-hackernews-setup ()
"Set up `evil' bindings for `hackernews-mode'."
(evil-collection-inhibit-insert-state 'hackernews-mode-map)
(evil-collection-set-readonly-bindings 'hackernews-mode-map)
(evil-collection-define-key 'normal 'hackernews-mode-map
"]]" 'hackernews-next-item
"[[" 'hackernews-previous-item
@ -57,12 +57,7 @@
"?" 'hackernews-button-mark-as-unvisited
(kbd "RET") 'hackernews-button-browse-internal
(kbd "S-<return>") 'push-button
;; quit
"q" 'quit-window
"ZQ" 'evil-quit
"ZZ" 'evil-quit))
(kbd "S-<return>") 'push-button))
(provide 'evil-collection-hackernews)
;;; evil-collection-hackernews.el ends here