Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the evil-org-set-key-theme call on load #46

Open
hlissner opened this issue Jun 25, 2018 · 1 comment
Open

Remove the evil-org-set-key-theme call on load #46

hlissner opened this issue Jun 25, 2018 · 1 comment

Comments

@hlissner
Copy link

At the end of evil-org-mode.el, you've got:

;; Set customizable theme
(evil-org-set-key-theme evil-org-key-theme)

Should this not be removed? The example configurations suggest we use evil-org-set-key-theme ourselves. This means evil-org-set-key-theme will run twice in my session. This works, but is suboptimal.

In my case, my Emacs framework uses evil-org as a basis for its evil+org integration, and I'd like to support the evil-org-set-key-theme use case as documented, but it'd require a little advice/auxiliary keymap gymnastics to do so.

Alternatively, it could be guarded with, say:

(unless evil-org-key-theme
  (evil-org-set-key-theme))

Side note: in your more elaborate example, you're setting:

(setf evil-org-key-theme '(navigation insert textobjects additional))

But don't call evil-org-set-key-theme, so those settings are never actualized.

@Somelauw
Copy link
Owner

Somelauw commented Jun 26, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants