evil-lookup-func settings in evil-mode

Hongxu Chen leftcopy.chx at gmail.com
Mon Jun 24 04:58:30 CEST 2013


  I am writing some c code with Emacs evil-mode and I find that now and
  then I need to lookup the man pages. It is easy enough when in Evil
  normal state, by pressing `K', which invokes `evil-lookup'. However
  the funcall is specified by `evil-lookup-func', so eventually the
  function called is Emacs function `woman' rather than `man'. The
  problem is that woman sucks for some formats of manpages, for
  instance, the table in the manpage of `man', and she also displays
  margin between words poorly.  So I hope to set `evil-lookup-func' to
  `man'. But I CANNOT since the definition in man.el(.gz) tells me that
  `man' takes ONE argument. So I re-bind `K' for myself:

  (evil-global-set-key 'normal (kbd "K") 'man)

  Everything goes well until I find that in some modes, `Man-mode' for
  example, this keymap doesn't work; `K' in such case still mapped to

  So what can I do to avoid calling WoMan by mistake?

Hongxu Chen

More information about the implementations-list mailing list