On Tue, Mar 29, 2011 at 01:13:15PM -0400, Fred Concklin wrote:
> When I open the page buffer list with C-x b I was wondering if there is a way
> to map M-< and M-> to jump to the top and bottom of the buffer list,
> respectively.
>
> fpc
Hacked this together fairly quickly, and didn't delve too deeply into the
minibuffer completion system to see if there were any cases I overlooked.
Given more thorough research assuring all is right, would consider adding
these commands to the program, though not _necessarily_ with these default
key bindings.
interactive("minibuffer-complete-first",
"Select first completion.",
function (I) {
var m = I.window.minibuffer;
var s = m.current_state;
var c = s.completions;
if (!c || c.count == 0)
return;
try {
m.ignore_input_events = true;
s.select_completion(0);
} finally {
m.ignore_input_events = false;
}
});
interactive("minibuffer-complete-last",
"Select last completion.",
function (I) {
var m = I.window.minibuffer;
var s = m.current_state;
var c = s.completions;
if (!c || c.count == 0)
return;
try {
m.ignore_input_events = true;
s.select_completion(c.count - 1);
} finally {
m.ignore_input_events = false;
}
});
define_key(minibuffer_keymap, "M-<", "minibuffer-complete-first");
define_key(minibuffer_keymap, "M->", "minibuffer-complete-last");
--
John Foerch
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror