Added a variety of things including:

* conkeror configuration fil (long past due)
  * a lisp template to autoinsert in .emacs for .lisp files
  * a ratpoison wm config file
  * a not-really-started stumpwm config
  * vim config file for those odd times out of emacs :S

Signed-off-by: Collin Doering <rekahsoft@gmail.com>
This commit is contained in:
Collin J. Doering 2011-08-11 02:00:52 -04:00 committed by Collin J. Doering
parent bd34674049
commit 5a83b71e52
6 changed files with 193 additions and 0 deletions

109
.conkerorrc Normal file
View File

@ -0,0 +1,109 @@
// File: ~/.conkerorrc
// Author: Collin J. Doering <rekahsoft@gmail.com>
// Date: Mar 27, 2011
// REKAHSOFT-MINI
// the default page for new buffers.
homepage = "http://www.google.ca";
// 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");
// automatically handle some mime types internally.
content_handlers.set("application/pdf", content_handler_save);
// external programs for handling various mime types.
external_content_handlers.set("application/pdf", "xpdf");
external_content_handlers.set("video/*", "urxvtc -e mplayer");
// 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;
// Do a google search if a webjump is not recognized
read_url_handler_list = [read_url_make_default_webjump_handler("google")];
// 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);
// 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!)
//session_pref("xpinstall.whitelist.required", false);

1
.emacs
View File

@ -280,6 +280,7 @@
("\\.rkt$" . ["racket-template.rkt" auto-update-generic-template])
("\\.scm$" . ["scheme-template.scm" auto-update-generic-template])
("\\.clj$" . ["clojure-template.clj" auto-update-generic-template])
("\\.lisp$" . ["lisp-template.lisp" auto-update-generic-template])
("\\.hs$" . ["haskell-template.hs" auto-update-generic-template])
("\\.py$" . ["python-template.py" auto-update-generic-template])))
(setq auto-insert 'other)

View File

@ -0,0 +1,19 @@
;; (C) Copyright Collin Doering @!@YEAR@!@
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
;; File: @!@FILE@!@
;; Author: Collin J. Doering <rekahsoft@gmail.com>
;; Date: @!@DATE@!@

28
.ratpoisonrc Normal file
View File

@ -0,0 +1,28 @@
#File: ~/.ratpoisonrc
#Author: Collin J. Doering <rekahsoft@gmail.com>
#Date: Mar 25, 2011
#Description: ratpoison userland configuration file
#Note: it is imporant to have comments have a character immediately after the '#'
#turnoff startup messages
startup_message off
#escape C-z
#virtual desks
gnewbg one
gnewbg two
definekey top M-l exec ratpoison -c "select -" -c "gprev" -c "next"
definekey top M-h exec ratpoison -c "select -" -c "gnext" -c "next"
#switch between windows
definekey top M-j next
definekey top M-k prev
#apps
unbind c
bind c exec urxvt
bind e exec emacs
bind f exec firefox2

22
.stumpwmrc Normal file
View File

@ -0,0 +1,22 @@
;; (C) Copyright Collin Doering @!@YEAR@!@
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
;; File: .stumpwmrc
;; Author: Collin J. Doering <rekahsoft@gmail.com>
;; Date: Aug 11, 2011
;; TODO: write some nice custom config for stumpwm
;(set-contrib-dir "/usr/share/stumpwm")

14
.vimrc Normal file
View File

@ -0,0 +1,14 @@
" File: ~/.vimrc
" Date: May 26, 2011
" Author: Collin J. Doering <rekahsoft@gmail.com>
" strip off file menu and toolbar
set guioptions-=m
set guioptions-=T
" set color scheme to a dark one
colorscheme slate
" number the lines
set number