hoodwink.d enhanced
RSS
2.0
XHTML
1.0

RedHanded

Quick Conkeror Prefs #

by why in bits

No more SwitchProxy extension for switching MouseHoles. Added to ~/.conkerorrc:

 // alter user preferences
 function set_pref(k, v) {
   if (!gPrefService) { message("EEP: no gPrefService"); return 0; }
   gPrefService.setIntPref(k, v);
   message(k + " set to " + v);
 }

 function get_pref(k) {
   if (!gPrefService) { message("EEP: no gPrefService"); return 0; }
   if (!gPrefService.prefHasUserValue(k)) return null;
   else return gPrefService.getIntPref(k);
 }

 // toggle proxy
 function toggle_http_proxy()
 {
   var proxytype = get_pref("network.proxy.type");
   set_pref("network.proxy.type", proxytype == 1 ? 0 : 1);
 }
 add_command("toggle-http-proxy", toggle_http_proxy, []);
 define_key(ctrlx_kmap, make_key("p", 0), "toggle-http-proxy");

So: C-x p. Seriously, go sift through this stuff from Bill Clementson [pt. 1 and pt. 2] and you’ll pick it up. The rest of my .conkerorrc is pretty standard, but the numbered link styling is essential, in that del.icio.us actually looks really good now.

said on 24 Nov 2006 at 20:11

Great stuff for wmii user, can’t wait to let my mouse get rusty. The article has a bit about Sawfish. Can anyone compare the two? Is it worth trying out, or are they just trying to emulate what we already have in wmii?

said on 26 Nov 2006 at 14:09

wish I could enter my name in the box on the left without command keys being picked up!

Also, I don’t see a command for pasting?

puth this in your resource if you’re feeling lucky: add_webjump(“l”, “http://www.google.com/search?q=%s&btnI=Lucky”);

said on 26 Nov 2006 at 17:37

Pasting is C-y. I’m thinking of writing something up on how to use cut-and-paste, since it’s not described in full anywhere. I think.

said on 28 Nov 2006 at 18:51

rcorsaro: Sawfish is written in Lisp. It doesn’t have the “use any language you want as long as you can pipe” appeal of wmii and Plan 9, but if you know any Lisp, you probably don’t need any explanation of how cool/flexible the Sawfish approach can be. I don’t think it has a Markov chain algorithm for window switching, but it’s really just a matter of time.

(If you don’t know Lisp, you should learn it now rather than dicking around on blogs.)

said on 28 Nov 2006 at 18:54

why: yeah, a lot of things that are just the same as they are in Emacs aren’t explained because the initial audience for Conkeror is Emacs users. I bet sabetts is actually kinda surprised it’s getting adoption outside of the Emacs world. I’m sure folks would appreciate a high-level peek at how this stuff works.

said on 29 Nov 2006 at 05:28

technomancy: I did not know that. That is very interesting, and adds to my curiosity Thanks.

11 Jul 2010 at 20:57

* do fancy stuff in your comment.

PREVIEW PANE