- deturl.com/whateverurl is the internet of internets
lunes, 19 de agosto de 2013
jueves, 8 de agosto de 2013
conkeror go to buffer
In conkeror, you're trying continuously to think emacs, so many commands and shortcuts just make sense when you're browsing.
A nice way to move through buffers is obviously c-x b, but from time to time I was typing M-g M-g as if it was a 'goto-line' in emacs, but meaning goto-buffer.
So let's go and use js to have this goto-buffer
A nice way to move through buffers is obviously c-x b, but from time to time I was typing M-g M-g as if it was a 'goto-line' in emacs, but meaning goto-buffer.
So let's go and use js to have this goto-buffer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interactive("rgc-goto-buffer", "switches to buffer", | |
function rgc_switch_to_buffer(I){ | |
var buff = yield I.minibuffer.read( $prompt = "number?:"); | |
switch_to_buffer(I.window, I.window.buffers.get_buffer(buff-1)); | |
} | |
); | |
define_key(content_buffer_normal_keymap, "M-g M-g", "rgc-goto-buffer"); |
viernes, 2 de agosto de 2013
TIL: 2013-08-02
- lua's require can't return multiple values. An easy way to overcome it is using unpack.
local _ , resource = unpack(require 'controller_helpers')
Suscribirse a:
Entradas (Atom)