tonini / alchemist.el

Elixir Tooling Integration Into Emacs
http://www.alchemist-elixir.org
906 stars 103 forks source link

Changing alchemist-key-command-prefix not working #354

Open isadon opened 5 years ago

isadon commented 5 years ago

In my .emacs file I add (setq alchemist-key-command-prefix (kbd "C-x a")) but yet when I go to the alchemist-refcard I see that all the bindings still start with C-c a. How can they be truly changed?

akirak commented 5 years ago

You have to set the variable before alchemist.el is loaded. Otherwise, reload the library after you change the variable.

isadon commented 5 years ago

I installed it via M-x package-install then put it before (require 'alchemist) and still doesn’t do anything when I type C-x a. The status shows unrecognized command.

akirak commented 5 years ago

I have no idea what's wrong with your config, but I've experienced a couple of issues with the prefix key recently and have ended up with this config. I don't use the refcard, but I use which-key for getting help. It seems to be working properly now.

mdbergmann commented 5 years ago

I'm running into this issue as well. "C-c a" clashes with 'Agenda view'.

This PR would probably work as well, but it's not merged yet: #324

So I have this config:

(use-package alchemist
  :defer t
  :config
  (setq alchemist-key-command-prefix (kbd "C-c e")))

":config" executes after the package was loaded, but the command prefix isn't changed.