ergoemacs / ergoemacs-mode

ergoemacs-mode
ergoemacs.github.io/
GNU General Public License v3.0
293 stars 35 forks source link

Annoying "keybinding is disabled!" messages #296

Closed pdg137 closed 10 years ago

pdg137 commented 10 years ago

I have had problems on recent version of Ergoemacs evaluting the following:

   (setq ergoemacs-theme nil
      ergoemacs-keyboard-layout "us")
    (ergoemacs-mode 1)
    (global-set-key (kbd "M-;") 'isearch-forward)

If (after starting emacs and initializing the package manager) I run those two lines with M-x eval-buffer, the keybinding doesn't work, instead returning the annoying message

【Alt_;】 keybinding is disabled! Use 【Alt+Y】 (isearch-forward)

I can succeed using eval-region or various other things, but not working in a buffer makes it really hard to get this into my .emacs. I suspect that Ergoemacs is doing some delayed processing that includes "disabling" some keybindings that I am trying to use.

I am using ergoemacs-mode-20140822.640 from melpa and Emacs 24.3.1.

mattfidler commented 10 years ago

I'm assuming that you are using the us layout and the standard theme.

I can reproduce this, but I'm unsure why.

mattfidler commented 10 years ago

If you turn on and off ergoemacs-mode everything works the way its supposed to as well.

pdg137 commented 10 years ago

Prior to eval-buffer I started emacs with -q and ran

(require 'package)
(add-to-list 'package-archives
  '("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)

So everything should be at a default setting. If I try M-; really soon (a fraction of a second) after running eval-buffer, it works, but eventually a message about "recentf" flashes by and it goes into the non-working state.

mattfidler commented 10 years ago

After running,

ergoemacs-global-override-rm-keys is a variable defined in `ergoemacs-advices.el'.
Its value is nil

Documentation:
Not documented as a variable.

Where it should contain the key.

mattfidler commented 10 years ago

This is now fixed for me.

pdg137 commented 10 years ago

Great! It works for me with ergoemacs-mode-20140825.1200. Thanks!