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

Keybinding does not work on gfm-mode (mode for Github markdown) #24

Open
Andre0991 opened this issue Mar 7, 2015 · 0 comments
Open

Comments

@Andre0991
Copy link

First, thanks for the plugin.

I use SPC as my leader.

I'm using the markdown-mode package. This package has a the gfm-mode as well, which provides GitHub flavored markdown. This mode has markdown-mode as its parent.

So I have this on my configuration:

(autoload 'markdown-mode "markdown-mode"
   "Major mode for editing Markdown files" t)
(add-to-list 'auto-mode-alist '("\\.markdown\\'" . gfm-mode))
(add-to-list 'auto-mode-alist '("\\.md\\'" . gfm-mode))

(evil-leader/set-key-for-mode 'gfm-mode
  "ml" 'markdown-insert-link
)

But when I'm editing a file on gfm-mode, I get "SPC m is undefined".

If I change the evil-leader line to markdown-mode instead, and if I effectivelly run markdown-mode, it works. However that doesn't help much because I want to use gfm-mode (which is derivated from the former).

My complete configuration is available on my dotfiles repository.

Thanks.

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

1 participant