GNU bug report logs -
#24224
New minor mode for 'h, j, k, l' key navigation
Previous Next
Reported by: Mohammed Sadik <sadiqpkp <at> gmail.com>
Date: Sun, 14 Aug 2016 16:58:02 UTC
Severity: wishlist
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
severity 24224 wishlist
quit
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Mohammed Sadik <sadiqpkp <at> gmail.com>
>> Date: Sun, 14 Aug 2016 12:22:38 +0530
>>
>> There are several buffers where alphabet keys have no effect.
>> In such buffers, it would be nice to enable the keys h, j, k, and l, for
>> navigation, and even further q for quit (or close the buffer), o for
>> other window, etc. This might also help resolve the pinky problem a little.
>>
>> The buffers that can include those key for navigation can be
>> help-mode, apropos-mode, woman, package-menu-mode (package listings),
>> compilation-mode, customize (Custom-mode), info-mode, and so on.
>
> Some of these keys are already bound in some of these modes. For
> example, h and l have bindings in help-mode.
>
> So I guess this could be some optional minor mode, off by default.
>
> Thanks.
view-mode has code for the k and j bindings, but commented out:
(defvar view-mode-map
(let ((map (make-sparse-keymap)))
...
(define-key map "q" 'View-quit)
...
;; (define-key map "k" 'View-scroll-line-backward)
(define-key map "y" 'View-scroll-line-backward)
;; (define-key map "j" 'View-scroll-line-forward)
...
(define-key map "o" 'View-scroll-to-buffer-end)
...
(define-key map "?" 'describe-mode) ; Maybe do as less instead? See above.
(define-key map "h" 'describe-mode)
This bug report was last modified 4 years and 284 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.