I'm really struggling to remap some keys in pdf-view-mode. This is what I have so far:
;; Unbind keys; see https://github.com/hlissner/doom-emacs/blob/develop/docs/faq.org#my-new-keybinds-dont-work
(map! :after evil
:map pdf-view-mode-map
"C-i" nil
"C-n" nil
"C-e" nil
"n" nil
"e" nil)
(map! :map pdf-view-mode-map "C-i" 'org-noter-insert-precise-note
"C-n" 'pdf-view-next-page
"C-e" 'pdf-view-previous-page
"n" 'pdf-view-scroll-up-or-next-page
"e" 'pdf-view-scroll-down-or-previous-page)
But it seems to have no effect at all. What am I doing wrong?
Edit: Here's what I have now:
;; Unbind stuff
(map! :after evil-mc-mode :map :n "C-n" nil)
(map! :after better-jumper-mode :map :n "C-i" nil)
(map! :after evil-commands-mode :map :n "C-e" nil)
(map! :after isearch-mode :map :n "n" nil)
(map! :after evil-collection-pdf-mode :map :n "e" nil)
;; Bind stuff
(map! :map pdf-view-mode-map :n "C-i" 'org-noter-insert-precise-note
:n "C-n" 'pdf-view-next-page
:n "C-e" 'pdf-view-previous-page
:n "n" 'pdf-view-scroll-up-or-next-page
:n "e" 'pdf-view-scroll-down-or-previous-page)
It still isn't working.
Edit 2:
Here's an illustration of what I'm up against.
- I run
M-x describe-key n
to figure out what's currently bound ton
. It saysn runs the command isearch-repeat-forward, which is an interactive compiled Lisp function in ‘isearch.el’.
. - I read
isearch.el
, and it says it provides a mode calledisearch
. - Yet
isearch-mode
doesn't appear to be something I can enable or disable withM-x
. And it doesn't seem to be listed in the minor modes given withdescribe-mode
. So this probably has something to do with why:after isearch-mode
isn't taking. - Bizarrely,
describe-mode
reports thatn
is bound topdf-view-scroll-up-or-next-page
, as one would expect. Yet that is not the case, since pressingn
still triggersisearch-next-search
or something.