1

When I type M-x man, it opens up a split and it behaves like a special buffer.

I want that when I invoke M-x man that it takes over the current window, and not open up any new splits. Also, I want it to behave like any normal evil text buffer beggining at evil-normal-state.

Is there a way to achieve that?

thanks in advance.

phils
  • 71,335
  • 11
  • 153
  • 198
ninrod
  • 523
  • 6
  • 25

1 Answers1

1

The following snippet worked for me:

(with-eval-after-load "man" 
  (progn
    (evil-set-initial-state 'Man-mode 'normal)
    (setq Man-notify-method 'pushy)
  )
)
ninrod
  • 523
  • 6
  • 25
  • 1
    n.b. Unlike `eval-after-load` there's no need for the `progn` when you use `with-eval-after-load`. – phils Oct 10 '16 at 21:53
  • 2
    Yes. The `&rest BODY` argument tells you that any number of forms may be supplied -- in contrast with the singular `FORM` argument required for `eval-after-load`. – phils Oct 11 '16 at 02:46