eschulte / epresent

Presentations in Emacs -- based on Org-mode
183 stars 51 forks source link

evil-mode #66

Open OrionRandD opened 4 years ago

OrionRandD commented 4 years ago

Hi, Great package. Could you implement it to work with evil-mode? Thx

cwinsnes commented 4 years ago

You could add something like

(evil-define-key 'normal epresent-mode-map "j" 'scroll-down)
(evil-define-key 'normal epresent-mode-map "k" 'scroll-up)
(evil-define-key 'normal epresent-mode-map "p" 'epresent-previous-page)
(evil-define-key 'normal epresent-mode-map "n" 'epresent-next-page)
;; continue with other wanted bindings here...

to your .emacs init, if you want to configure it yourself.

eschulte commented 4 years ago

If there's a standard way for modes to add evil-mode key bindings (e.g., by adding the above when the evil-define-key function is defined) I would be happy to accept a pull request to that effect.

cwinsnes commented 4 years ago

67

sellout commented 1 year ago

I think this issue is fixed by #67, but I may also have broken it in #76 (not merged at the time of writing), which extracts the evil-mode parts into their own feature (epresent-evil) to silence various linter issues.

I should update the README or other docs on that PR to explain that evil users will need something like

(eval-after-load 'evil '(epresent-evil-bindings))

or

(use-package evil
  :config (epresent-evil-bindings))
OrionRandD commented 1 year ago

Thx for the fix...