ido keybindings don't work in ergo emacs mode

96 views
Skip to first unread message

nim...@gmail.com

unread,
Apr 26, 2013, 5:39:48 AM4/26/13
to ergo...@googlegroups.com
Hi
When turning on ergo emacs, M-j and M-l don't cycle through matches. 

Hitting M-a and then M-l gives me an end of buffer error, hitting M-j moves backwards over the prompt in the mini buffer.

I need to use arrow keys to select different matches.  I've tried setting the keys in the ido-completion-map in the ido-setup-hook but I think ergoemacs is overriding this some how.  This is driving me absolutely batty.  Any suggestions??

Nimai Etheridge

Xah Lee

unread,
Apr 26, 2013, 12:07:02 PM4/26/13
to ErgoEmacs
what layout are you using?
and was it from MELPA?

it should work. It works for me.

using Qwerty notation, Alt plus j or l moves left/right, and i/k moves up/down. Alt+a won't work because it's execute-extended-command.

 Xah



--
You received this message because you are subscribed to the Google Groups "ErgoEmacs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ergoemacs+...@googlegroups.com.
To post to this group, send email to ergo...@googlegroups.com.
Visit this group at http://groups.google.com/group/ergoemacs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

felipe...@gmail.com

unread,
Oct 29, 2014, 12:01:55 PM10/29/14
to ergo...@googlegroups.com, xah...@gmail.com
Sorry for ressurrecting this old thread, but it seems I'm having OP's problem.  I've just started to use ido-mode since iswitchb-mode was deprecated by 24.4

When I switch buffers (menu t):

  * Pressing either Alt+j or Alt+l throws me into "Find file".
  * Pressing Alt+k displays "End of history; no default available" then nothing happens.
  * Pressing Alt+i displays "Wrong type argument: char-or-string-p, nil" then nothing happens.

I can cycle buffers using the arrow keys, though.

How do I bind Alt+j/l so that they cycle buffers as well?

Matthew Fidler

unread,
Oct 29, 2014, 12:16:51 PM10/29/14
to ergo...@googlegroups.com, Xah Lee
Ido sets up thing slightly differently:

- Pressing Alt+j should throw you in the traditional switch buffer
- Pressing Alt+l should throw you into find file

But, if you have typed something and want to move around, Alt+j and Alt+l should still move the cursor around as you wish.  I believe this is also true for the Alt+k and Alt+i keys.  They should move in the history, as in typical IDO (the up/down arrow keys work the same for me).

To enable cycling using the Alt+j/l you can select it from the menu

Inline image 2
 
Or in your .emacs use

(ergoemacs-require 'ido-prev-next-instead-of-left-right)

Felipe Lessa

unread,
Oct 29, 2014, 12:22:57 PM10/29/14
to ergo...@googlegroups.com
It works! Thank you, Matthew, you're awesome!

Hopefully the next person googling this will find this old thread and
your answer.

Cheers,

--
Felipe.

signature.asc

Max Arnold

unread,
Nov 10, 2023, 8:52:32 PM11/10/23
to ErgoEmacs
Anyone knows how to achieve the same in ergoemacs-mode-20230207.1551?

- Invoking M-x command history (by pressing M-i) prints [Beginning of buffer]. Up/down arrow keys work as expected
- M-j and M-l in "Find file" just move the cursor instead of selecting a file. Left/right arrow keys work

Max Arnold

unread,
Nov 14, 2023, 1:03:08 AM11/14/23
to ErgoEmacs
The recommended way no longer works: https://github.com/ergoemacs/ergoemacs-mode/issues/313#issuecomment-56035680 (and seem to have been removed without any release notes https://github.com/ergoemacs/ergoemacs-mode/pull/506)

And neither the ido way:

(defun ergoemacs-install-ido-bindings ()
  "Install the ido-mode bindings."
  (define-key ido-completion-map (kbd "M-j") 'ido-prev-match)
  (define-key ido-completion-map (kbd "M-l") 'ido-next-match))

(add-hook 'ido-setup-hook 'ergoemacs-install-ido-bindings)

Any ideas?
Reply all
Reply to author
Forward
0 new messages