This repository has been archived on 2022-12-11. You can view files and clone it, but cannot push or open issues or pull requests.
dot-files/.conkerorrc

190 lines
6.6 KiB
Plaintext
Raw Normal View History

// File: ~/.conkerorrc
// Author: Collin J. Doering <rekahsoft@gmail.com>
// Date: Mar 27, 2011
// REKAHSOFT-MINI
// the default page for new buffers.
homepage = "http://www.duckduckgo.com";
// load urls from the command line in new buffers instead
// of new windows.
url_remoting_fn = load_url_in_new_buffer;
// load download buffers in the background in the current
// window, instead of in new windows.
download_buffer_automatic_open_target = OPEN_NEW_BUFFER_BACKGROUND;
// save a keystroke when selecting a dom node by number.
hints_auto_exit_delay = 500;
hints_ambiguous_auto_exit_delay = 500;
// display properties of the current selected node during
// the hints interaction.
hints_display_url_panel = true;
// default directory for downloads and shell commands.
cwd = get_home_directory();
//cwd.append("downloads");
Various day-to-day changes made summarized as follows: .conkerorrc: * added better support for mime-type handling (pdf, ps, torrent, ...) .emacs: * added PKGBUILD mode * disabled hs-org/minor-mode because of it not playing well with auto-complete-mode and flyspell * disabled yasnippet for the time being (look into auto-complete-mode and flyspell issues) * disabled elget (not functioning plus there is the ELPA so whats the point?) .gnus: * set default account to rekahsoft@gmail.com (previously was only able to send through collin.doering (SMTP) and recieve mail through rekahsoft (IMAP)) * using encrypted autoinfo files now * TODO: get multiple IMAP/SMTP accounts working .screenrc: * disabled ncmpcpp screen (no longer using mpd sadly due to pulseaudio issues * disabled nvlc screen .xinitrc: * disabled trayer (no apps use it so whats the point) (still need to modify .xmobar to leave no gap on the right side of the screen) .xmonad/xmonad.hs: * beginning utilization of a few new modules from XMonad.Contrib including: - XMonad.Layout.Tabbed - XMonad.Layout.Sublayouts - XMonad.Layout.WindowNavigation - XMonad.Layout.BoringWindows Note: many of the added extensions above are not being used; just being prepared to be integrated into the environment (commented out) a few other extensions are being considered as well including: CycleWS, XMonad.Actions.TopicSpace and DynamicWorkspaces * disabled transmission-gtk scratchpad in preference of transmission-remote cli .zshrc: * new tab completion generated by compinstall (much nicer then previous) Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-06-18 21:00:34 +00:00
// set how conkeror will handle certian mime types
content_handlers.set("application/x-bittorrent", content_handler_open_url);
// external programs for handling various mime types.
Various day-to-day changes made summarized as follows: .conkerorrc: * added better support for mime-type handling (pdf, ps, torrent, ...) .emacs: * added PKGBUILD mode * disabled hs-org/minor-mode because of it not playing well with auto-complete-mode and flyspell * disabled yasnippet for the time being (look into auto-complete-mode and flyspell issues) * disabled elget (not functioning plus there is the ELPA so whats the point?) .gnus: * set default account to rekahsoft@gmail.com (previously was only able to send through collin.doering (SMTP) and recieve mail through rekahsoft (IMAP)) * using encrypted autoinfo files now * TODO: get multiple IMAP/SMTP accounts working .screenrc: * disabled ncmpcpp screen (no longer using mpd sadly due to pulseaudio issues * disabled nvlc screen .xinitrc: * disabled trayer (no apps use it so whats the point) (still need to modify .xmobar to leave no gap on the right side of the screen) .xmonad/xmonad.hs: * beginning utilization of a few new modules from XMonad.Contrib including: - XMonad.Layout.Tabbed - XMonad.Layout.Sublayouts - XMonad.Layout.WindowNavigation - XMonad.Layout.BoringWindows Note: many of the added extensions above are not being used; just being prepared to be integrated into the environment (commented out) a few other extensions are being considered as well including: CycleWS, XMonad.Actions.TopicSpace and DynamicWorkspaces * disabled transmission-gtk scratchpad in preference of transmission-remote cli .zshrc: * new tab completion generated by compinstall (much nicer then previous) Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-06-18 21:00:34 +00:00
external_content_handlers = {
"*": "emacsclient",
text: { "*": "emacsclient" },
image: { "*": "feh --scale-down" },
application: {
pdf: "zathura",
postscript: "zathura",
"x-dvi": "zathura",
"x-bittorrent": "transmission-remote -a"
}
};
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
external_content_handlers.set("application/pdf", "zathura");
external_content_handlers.set("video/*", "urxvtc -e mplayer");
Various day-to-day changes made summarized as follows: .conkerorrc: * added better support for mime-type handling (pdf, ps, torrent, ...) .emacs: * added PKGBUILD mode * disabled hs-org/minor-mode because of it not playing well with auto-complete-mode and flyspell * disabled yasnippet for the time being (look into auto-complete-mode and flyspell issues) * disabled elget (not functioning plus there is the ELPA so whats the point?) .gnus: * set default account to rekahsoft@gmail.com (previously was only able to send through collin.doering (SMTP) and recieve mail through rekahsoft (IMAP)) * using encrypted autoinfo files now * TODO: get multiple IMAP/SMTP accounts working .screenrc: * disabled ncmpcpp screen (no longer using mpd sadly due to pulseaudio issues * disabled nvlc screen .xinitrc: * disabled trayer (no apps use it so whats the point) (still need to modify .xmobar to leave no gap on the right side of the screen) .xmonad/xmonad.hs: * beginning utilization of a few new modules from XMonad.Contrib including: - XMonad.Layout.Tabbed - XMonad.Layout.Sublayouts - XMonad.Layout.WindowNavigation - XMonad.Layout.BoringWindows Note: many of the added extensions above are not being used; just being prepared to be integrated into the environment (commented out) a few other extensions are being considered as well including: CycleWS, XMonad.Actions.TopicSpace and DynamicWorkspaces * disabled transmission-gtk scratchpad in preference of transmission-remote cli .zshrc: * new tab completion generated by compinstall (much nicer then previous) Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-06-18 21:00:34 +00:00
external_content_handlers.set("application/x-bittorrent", "transmission-remote -a");
// use emacsclient as external editor.
editor_shell_command = "emacsclient";
// view source in your editor.
view_source_use_external_editor = true;
// let xkcd-mode put the funny alt text into the page.
xkcd_add_title = true;
// use session module
require("session.js");
session_auto_save_auto_load = true;
// Put history completion along side webjumps
url_completion_use_history = true;
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
// Setup some handy web jumps
define_webjump("wolframalpha", "http://www.wolframalpha.com/input/?i=%s");
define_webjump("duckduckgo", "https://duckduckgo.com/?q=%s");
// Create some shortcuts to the webjumps above
webjumps.ddg = webjumps.duckduckgo
webjumps.wa = webjumps.wolframalpha
// START SECTION: thanks to http://conkeror.org/Webjumps
function chickadee_completer (input, cursor_position, conservative) {
var completions = [];
var content = yield send_http_request(
load_spec({uri: "http://api.call-cc.org/cdoc/ajax/prefix?q="+
encodeURIComponent(input)}));
if (content.responseText) {
var parser = Cc["@mozilla.org/xmlextras/domparser;1"]
.createInstance(Ci.nsIDOMParser);
var doc = parser.parseFromString(content.responseText, "text/xml");
var res = doc.getElementsByTagName("li")
for (let i = 0, n = res.length; i < n; ++i) {
completions.push(res[i].textContent);
}
}
yield co_return(prefix_completer($completions = completions)
(input, cursor_position, conservative));
}
define_webjump("chickadee",
"http://api.call-cc.org/cdoc?q=%s&query-name=Lookup",
$alternative = "http://api.call-cc.org/doc/",
$completer = chickadee_completer);
define_webjump("eggref4", "http://wiki.call-cc.org/eggref/4/%s",
$alternative = "http://wiki.call-cc.org/chicken-projects/egg-index-4.html");
define_webjump("srfi", function (i) {
return "http://srfi.schemers.org/srfi-" + i + "/srfi-" + i + ".html";
});
define_webjump("commandlinefu",
function(term) {
return 'http://www.commandlinefu.com/commands/matching/' +
term.replace(/[^a-zA-Z0-9_\-]/g, '')
.replace(/[\s\-]+/g, '-') +
'/' + btoa(term);
},
$argument = 'optional',
$alternative = "http://www.commandlinefu.com/");
define_webjump("emacswiki",
"http://www.google.com/cse?cx=004774160799092323420%3A6-ff2s0o6yi"+
"&q=%s&sa=Search&siteurl=emacswiki.org%2F",
$alternative="http://www.emacswiki.org/");
define_webjump("savannah", "https://savannah.gnu.org/search/?words=%s&type_of_search=soft");
define_webjump("youtube", "http://www.youtube.com/results?search_query=%s&search=Search");
// END SECTION
// Do a google search if a webjump is not recognized
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
read_url_handler_list = [read_url_make_default_webjump_handler("duckduckgo")];
// recognize urls a little diffently (allow one worded default webjumps)
function possibly_valid_url (str) {
return (/[\.\/:]/.test(str)) &&
!(/\S\s+\S/.test(str)) &&
!(/^\s*$/.test(str));
}
// turn off mode line
mode_line_mode(false);
// force scrolling bars so that incremental search (isearch) works and mousewheel scrolling
function enable_scrollbars (buffer) {
buffer.top_frame.scrollbars.visible = true;
}
add_hook("create_buffer_late_hook", enable_scrollbars);
// Turn on password management in XUL runner
session_pref("signon.rememberSignons", true);
session_pref("signon.expireMasterPassword", false);
session_pref("signon.SignonFileName", "signons.txt");
Cc["@mozilla.org/login-manager;1"].getService(Ci.nsILoginManager); // init
// Some keybindings i like from firefox + pentadactyl, and luakit
define_key(content_buffer_normal_keymap, "C-f", "buffer-next");
define_key(content_buffer_normal_keymap, "C-b", "buffer-previous");
define_key(content_buffer_normal_keymap, "j", "cmd_scrollLineDown");
define_key(content_buffer_normal_keymap, "k", "cmd_scrollLineUp");
define_key(content_buffer_normal_keymap, "J", "follow-new-buffer-background");
define_key(default_global_keymap, "C-x C-b", "switch-to-buffer");
// Some code thanks to retroj on #conkeror@irc.freenode.net
define_browser_object_class(
"history-url", null,
function (I, prompt) {
check_buffer (I.buffer, content_buffer);
var result = yield I.buffer.window.minibuffer.read_url(
$prompt = prompt, $use_webjumps = false, $use_history = true, $use_bookmarks = false);
yield co_return (result);
},
$hint = "choose url from history");
interactive("find-url-from-history",
"Find a page from history in the current buffer",
"find-url",
$browser_object = browser_object_history_url);
interactive("find-url-from-history-new-buffer",
"Find a page from history in the current buffer",
"find-url-new-buffer",
$browser_object = browser_object_history_url);
function history_clear () {
var history = Cc["@mozilla.org/browser/nav-history-service;1"]
.getService(Ci.nsIBrowserHistory);
history.removeAllPages();
}
interactive("history-clear",
"Clear the history.",
history_clear);
// Disable whitelist (Causes extensions from unknown/unsigned sites to silently fail if not enabled!)
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
session_pref("xpinstall.whitelist.required", false);