Permalink
Browse files

update zsh for os-agnostic behavior, irssi uses tor for freenode and …

…nice looking anonymous functions in emacs clojure files
  • Loading branch information...
1 parent 61e34b4 commit 491ee1f0afaa57c938d0e280fd3b4772fab5aeab @dakrone committed Sep 24, 2010
Showing with 47 additions and 24 deletions.
  1. +9 −0 .emacs.d/init.el
  2. +19 −14 .irssi/config
  3. +19 −10 .zshrc
View
@@ -37,6 +37,7 @@
(require 'paredit)
(require 'yasnippet-bundle)
(require 'clojure-mode)
+(require 'durendal)
;; TODELETE: (require 'project-buffer-mode)
@@ -78,6 +79,14 @@
(add-hook 'clojure-mode-hook 'tweak-clojure-syntax)
+;; Collapse fn declarations into fancy 'f', stolen shamelessly from Technomancy:
+(eval-after-load 'clojure-mode
+ '(font-lock-add-keywords
+ 'clojure-mode `(("(\\(fn\\>\\)"
+ (0 (progn (compose-region (match-beginning 1)
+ (match-end 1) "ƒ")
+ nil))))))
+
; This code makes % act like the buffer name, similar to Vim
(define-key minibuffer-local-map "%"
(function
View
@@ -1,20 +1,25 @@
servers = (
{
- address = "irc.freenode.net";
- chatnet = "Freenode";
+ address = "p4fsi4ockecnea7l.onion";
+ chatnet = "freenode";
port = "6667";
- autoconnect = "No";
+ autoconnect = "yes";
}
);
+#servers = (
+# {
+# address = "irc.freenode.net";
+# chatnet = "Freenode";
+# port = "6667";
+# autoconnect = "No";
+# }
+#);
-chatnets = { Freenode = { type = "IRC"; }; };
+chatnets = { freenode = { type = "IRC"; }; };
channels = (
- { name = "#rawpacket"; chatnet = "Freenode"; autojoin = "yes"; },
- { name = "#newsbeuter"; chatnet = "Freenode"; autojoin = "yes"; },
- { name = "#boulder.rb"; chatnet = "Freenode"; autojoin = "yes"; },
- { name = "#clojure"; chatnet = "Freenode"; autojoin = "yes"; },
- { name = "#ruby"; chatnet = "Freenode"; autojoin = "yes"; }
+ { name = "#rawpacket"; chatnet = "freenode"; autojoin = "yes"; },
+ { name = "#clojure"; chatnet = "freenode"; autojoin = "yes"; }
);
statusbar = {
@@ -129,17 +134,17 @@ statusbar = {
};
};
settings = {
- core = {
- real_name = "Lee";
- user_name = "dakrone";
- nick = "dakrone";
- };
+ core = { real_name = "Lee"; user_name = "dakrone"; nick = "dakrone"; };
"fe-text" = { actlist_sort = "refnum"; };
"fe-common/core" = {
autolog = "yes";
theme = "tzu.theme";
timestamps = "yes";
completion_char = ",";
+ activity_hide_level = "parts joins quits nicks modes";
};
};
logs = { };
+ignores = (
+ { level = "JOINS PARTS QUITS MODES"; channels = ( "#clojure" ); }
+);
View
29 .zshrc
@@ -1,3 +1,5 @@
+OS=$(uname)
+
# autoloads
autoload -U compinit
autoload -U promptinit
@@ -7,7 +9,7 @@ compinit
promptinit
# path
-export PATH=~/bin:/opt/local/bin:/usr/local/bin:$PATH:/usr/local/sbin:/usr/local/sbin:/usr/libexec:/opt/local/sbin:/usr/local/mysql/bin
+export PATH=/opt/local/bin:/usr/local/bin:$PATH:/usr/local/sbin:/usr/local/sbin:/usr/libexec:/opt/local/sbin:/usr/local/mysql/bin
# Path for Matasano's blackbag
export PATH=/usr/local/bin/blackbag:$PATH
# Path for ruby gems
@@ -21,6 +23,8 @@ export PATH=$PATH:~/.gem/ruby/1.9/bin
#export PATH=$PATH:/usr/local/git/bin
# Path for liebke's cljr - http://github.com/liebke/cljr
#export PATH=/Users/hinmanm/.cljr/bin:$PATH
+# path for maven
+export PATH=$PATH:/opt/apache-maven-2.2.1
# Chris' ruby stuff
export RUBYLIB=~/src/chrisbin/ruby
@@ -37,6 +41,9 @@ export CLOJURE_OPTS="-server -Xmx1024m -XX:+UseConcMarkSweepGC -XX:+HeapDumpOnOu
# cljr options
export JVM_OPTS="-server -Xmx512m -XX:+UseConcMarkSweepGC -XX:+HeapDumpOnOutOfMemoryError"
+# Java opts (leiningen uses these)
+export JAVA_OPTS="-server -Xmx512m -XX:+UseConcMarkSweepGC -XX:+HeapDumpOnOutOfMemoryError"
+
# manpath
export MANPATH=$MANPATH:/usr/local/man:/opt/local/share/man
@@ -60,18 +67,15 @@ export RSPEC=true
# Source j.sh
source ~/bin/j.sh
-# Resty
-. ~/bin/resty
-
# rvm stuff:
if [ -s ~/.rvm/scripts/rvm ] ; then source ~/.rvm/scripts/rvm ; fi
# Set default ruby install
rvm default
-# path for maven
-export PATH=$PATH:/opt/apache-maven-2.2.1
+# Always override with my personal bin
+export PATH=~/bin:$PATH
-# IRBRC
+# IRBRC for RVM
export IRBRC=~/.irbrc
# Perforce
@@ -142,9 +146,14 @@ alias tmux='tmux -2'
alias screen='TERM=xterm-color && /opt/local/bin/screen'
alias rvim='gvim --remote-tab-silent'
alias todo='rvim ~/vimwiki/ToDo.wiki'
-alias msync='rsync -av --ignore-existing --delete ~/Music/iTunes/iTunes\ Music/* dagger:~/Music/'
-# Use MacVim's vim for terminal sessions, since it has everything compiled in.
-alias vim='/Applications/MacVim.app/Contents/MacOS/Vim'
+
+if [[ $OS == "Darwin" ]]; then
+ # Use MacVim's vim for terminal sessions, since it has everything compiled in.
+ alias msync='rsync -av --ignore-existing --delete ~/Music/iTunes/iTunes\ Music/* dagger:~/Music/'
+ alias vim='/Applications/MacVim.app/Contents/MacOS/Vim'
+ alias emacs='/Applications/Emacs.app/Contents/MacOS/Emacs'
+ alias emacsclient='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient'
+fi
# history

0 comments on commit 491ee1f

Please sign in to comment.