chenyanming / shrface

Extend eww/nov with org-mode features, archive web pages to org files with shr.
GNU General Public License v3.0
211 stars 14 forks source link

shrface-mode-map bindings break common Emacs keys #12

Closed gdindi closed 3 years ago

gdindi commented 3 years ago

Hi, First of all, thanks for this nice package that I have been using for a long time. If I am not mistaken, a set of keybindings were recently introduced and they break very common Emacs bindings like C-l for (recenter-top-bottom) or all the help keys for describing vars, functions etc. whose prefix is C-h. Is there a simple way to disable these bindings? Would you consider creating a prefix for those bindings so they do not interfere? Thanks!

gdindi commented 3 years ago

I just remap the keys by now like this:

+begin_src emacs-lisp

(use-package shrface
  :defer t
  :ensure t
  :config
  (shrface-basic)
  (setq shrface-href-versatile t)
  :bind 
          (:map shrface-mode-map
              ("C-h" . nil)
              ("C-l" . 'recenter-top-bottom))))

+end_src