greetings. I'm attempting to remap keys used in w3m but all my attempts are unsuccessful. after some experimentation I tracked down the problem to ergoemacs: if i disable it all my remaps work just fine. I googled a bit and found some very similar complaints from 2010 with regards to other modes while ergoemacs is active, and in the conversation the responders, Xah Lee and David, suggested some new patch solved the issue. However I'm having this same issue, and the links they provide to the patches are no longer functioning. I asked on #emacs and someone suggested I look at ergoemacs-theme-component, but after looking at that source I can't figure out how to use that to solve my problem.
Can someone help me figure out how to remap w3m keybindings without having to toss ergoemacs?
As an aside, I thought I saw in the source that ergoemacs attempts to rebind M-i and M-k to previous and next line, respectively, while in w3m-mode. However this is not the case, those two keys invoke w3m-previous/next-anchor respectively, so there may be a bug in how ergoemacs interacts with w3m that you guys are unaware of.
here's a reference to the older threads I mentioned:
https://groups.google.com/forum/#!topic/ergoemacs/ZVtiEv1hgDcand here's the relevant portion from my .emacs that does not work while ergoemacs is active:
(add-hook 'w3m-mode-hook
(lambda()
(define-key w3m-mode-map (kbd "M-i") 'w3m-scroll-down)
(define-key w3m-mode-map (kbd "M-k") 'w3m-scroll-up)
))
any help is appreciated.
-Chandler