Issue 131 in ergoemacs: Can't customize key bindings

10 views
Skip to first unread message

ergo...@googlecode.com

unread,
May 17, 2013, 10:55:22 AM5/17/13
to ergo...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 131 by m00nati...@gmail.com: Can't customize key bindings
http://code.google.com/p/ergoemacs/issues/detail?id=131

What steps will reproduce the problem?
Before or after enabling ergoemacs-mode I try each of:

(ergoemacs-replace-key 'search-forward-regexp "C-e")
(ergoemacs-minor-key "C-e" 'search-forward-regexp)
(ergoemacs-key "C-e" 'search-forward-regexp)
(ergoemacs-fixed-key "C-e" 'search-forward-regexp)

What is the expected output? What do you see instead?

I'd like to map C-e (in the ideal case, the key will float for all
layouts) to do regular expression search. None of the above has
desired (any) effect. As I'm using colemak, here are the results:

C-f (corresponding to C-e on qwerty, this is what I really want) -> invokes
isearch

C-e -> 【Ctrl+e】 keybinding is disabled! Use 【Alt+⇧Shift+h】, <end>
(move-end-of-line)

I'd also like to re-enable M-< and M-> to go to beginning/end of
buffer and disable M-(arrow keys) so I can use paredit bindings. I
can't achieve any of the above.

Are you using ErgoEmacs windows binary, or the ErgoEmacs elisp package, or
just the ErgoEmacs keybinding elisp package?
MELPA elisp package

What version of the the above are you using?
5.7.5 (20130516.515 from MELPA)

What OS (Windows, Mac, Linux)?
GNU/Linux

Is this bug related to running emacs inside a text terminal?
No

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

ergo...@googlecode.com

unread,
May 17, 2013, 1:57:47 PM5/17/13
to ergo...@googlegroups.com

Comment #1 on issue 131 by matthew....@gmail.com: Can't customize key
bindings
http://code.google.com/p/ergoemacs/issues/detail?id=131

I'm not sure what is happening right now.

However, you should be able to achieve that using:

(global-set-key ...)

after ergoemacs-mode loads.

ergo...@googlecode.com

unread,
May 17, 2013, 2:12:44 PM5/17/13
to ergo...@googlegroups.com

Comment #2 on issue 131 by matthew....@gmail.com: Can't customize key
bindings
http://code.google.com/p/ergoemacs/issues/detail?id=131

I made some changes to ergoemacs that may have fixed this bug... It passes
the test for ergoemacs-key, but I haven't created any other tests yet.

ergo...@googlecode.com

unread,
May 19, 2013, 11:38:20 AM5/19/13
to ergo...@googlegroups.com

Comment #3 on issue 131 by m00nati...@gmail.com: Can't customize key
bindings
http://code.google.com/p/ergoemacs/issues/detail?id=131

Thanks! Things seem to work now as expected with (ergoemacs-key ...).

A little addition, is there a way to unbind/ignore some of the default
ergo keys, like associated with ergoemacs-backward-open-bracket or
ergoemacs-forward-block? I unsuccessfully tried with:

(ergoemacs-set-default 'ergoemacs-forward-block nil)

ergo...@googlecode.com

unread,
May 20, 2013, 10:11:10 AM5/20/13
to ergo...@googlegroups.com

Comment #4 on issue 131 by matthew....@gmail.com: Can't customize key
bindings
http://code.google.com/p/ergoemacs/issues/detail?id=131

Of course. For colemak:

(require 'ergoemacs-mode)
(global-set-key (kbd "M-n") nil)

ergoemacs-set-default doesn't work. It is used to allow you to customize
your keys with the customize interface. In other words, use M-a
customize-group ergoemacs-mode. With that you can add/delete keys, save
the changes and have those changes instantly available.

I also made ergoemacs-replace-key work in a similar manner:

(ergoemacs-replace-key 'ergoemacs-forward-block nil)

ergo...@googlecode.com

unread,
May 20, 2013, 10:29:37 AM5/20/13
to ergo...@googlegroups.com

Comment #5 on issue 131 by m00nati...@gmail.com: Can't customize key
bindings
http://code.google.com/p/ergoemacs/issues/detail?id=131

It turns out

(ergoemacs-fixed-key "<M-up>" nil)

is what I was looking for and it works as intended. Thank you for
your effort and help, I think this ticket is done :-)

ergo...@googlecode.com

unread,
May 20, 2013, 10:42:00 AM5/20/13
to ergo...@googlegroups.com
Updates:
Status: Fixed

Comment #6 on issue 131 by matthew....@gmail.com: Can't customize key
bindings
http://code.google.com/p/ergoemacs/issues/detail?id=131

(No comment was entered for this change.)
Reply all
Reply to author
Forward
0 new messages