all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to make ~evil-leader~ work for for ~org-src-mode~?
@ 2015-10-20 14:22 Ben
  2015-10-20 16:37 ` Ista Zahn
  0 siblings, 1 reply; 2+ messages in thread
From: Ben @ 2015-10-20 14:22 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

[-- Attachment #1: Type: text/plain, Size: 265 bytes --]

Dear all,

I want to set some evil-leader keys for org-src-mode with the following
code:

(evil-leader/set-key-for-mode 'org-src-mode
    "k" 'org-edit-src-abort
    "s" 'org-edit-src-save
    "'" 'org-edit-src-exit)

But it doesn't work. Why is that?

Thanks,
Ben

[-- Attachment #2: Type: text/html, Size: 434 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to make ~evil-leader~ work for for ~org-src-mode~?
  2015-10-20 14:22 How to make ~evil-leader~ work for for ~org-src-mode~? Ben
@ 2015-10-20 16:37 ` Ista Zahn
  0 siblings, 0 replies; 2+ messages in thread
From: Ista Zahn @ 2015-10-20 16:37 UTC (permalink / raw)
  To: Ben; +Cc: emacs-orgmode Mailinglist

Hi Ben,

It doesn't work because evil-leader/set-key-for-mode sets keys for
major modes and org-src-mode is a minor mode. Unfortunately I don't
know the answer to your implied question "how do I make it work?", but
that is why it doesn't work.

Best,
Ista

On Tue, Oct 20, 2015 at 10:22 AM, Ben <yfefyf@gmail.com> wrote:
> Dear all,
>
> I want to set some evil-leader keys for org-src-mode with the following
> code:
>
> (evil-leader/set-key-for-mode 'org-src-mode
>     "k" 'org-edit-src-abort
>     "s" 'org-edit-src-save
>     "'" 'org-edit-src-exit)
>
> But it doesn't work. Why is that?
>
> Thanks,
> Ben

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-20 16:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-20 14:22 How to make ~evil-leader~ work for for ~org-src-mode~? Ben
2015-10-20 16:37 ` Ista Zahn

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.