Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update zsh stuff, irb and emacs config

  • Loading branch information...
commit a3dffb4670eb7a2f01bf5ba98ce6d2a72b5af016 1 parent fba8a01
@dakrone authored
View
10 .config/irb/myirb.rb
@@ -13,13 +13,9 @@ module MyIRB
#duration highline ]
libs = %w[
- irb/completion irb/ext/save-history thread
- yaml fileutils date open-uri pp monitor
- rubygems map_by_method what_methods
- english/inflect ruby2ruby
- hpricot stringio mechanize stored_hash
- looksee/shortcuts duration highline wirble
- hirb]
+ irb/completion irb/ext/save-history thread yaml fileutils date open-uri pp
+ monitor rubygems map_by_method what_methods english/inflect ruby2ruby
+ hpricot stringio mechanize looksee duration highline wirble hirb]
def catch_stdout
verbose = $VERBOSE
View
148 .emacs.d/ac-comphist.dat
@@ -1,146 +1,8 @@
-((("What" .
- [1 0 0 0])
- ("name" .
- [2 0 0 0])
- ("the" .
- [3 0 0])
- ("ledger" .
- [1 0 0 0 0 0])
- ("require" .
- [1 0 0 0 0 0 0])
- ("sentence-seq" .
- [0 0 0 0 0 0 0 0 0 0 0 1])
- ("opennlp.tools.lazy" .
- [1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0])
- ("create-index" .
- [1 0 0 0 0 0 0 0 0 0 0 0])
- ("let" .
- [4 0 0])
- ("phrase-strings" .
- [0 0 0 0 0 0 0 0 0 1 0 0 0 0])
- ("phrase" .
- [0 0 0 0 0 1])
- ("pos-tag" .
- [1 0 0 0 0 0 0])
- ("tokenizer" .
- [0 0 0 0 0 0 0 0 1])
- ("to" .
+((("do" .
[1 0])
- ("record" .
+ ("doc-id" .
[1 0 0 0 0 0])
- (":text" .
- [1 0 0 0 0])
- ("->" .
- [2 0])
- ("chunker" .
- [3 0 0 0 0 0 0])
- ("esk-turn-on-hl-line-mode" .
- [0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0])
- ("coding-hook" .
- [0 0 0 0 0 0 0 0 0 0 1])
- ("remove-hook" .
- [1 0 0 0 0 0 0 0 0 0 0])
- ("op2" .
- [2 0 0])
- ("count" .
- [1 0 0 0 0])
- ("dt-ops" .
- [0 0 1 0 1 0])
- ("when" .
- [2 0 0 0])
- ("in" .
- [2 0])
- ("if" .
- [4 0])
- ("println" .
- [2 0 0 0 0 0 0])
- ("ts" .
- [2 0])
- ("op" .
- [2 0])
- ("foo.core" .
- [1 0 0 0 0 0 0 0])
- ("defun" .
- [1 0 0 0 0])
- ("naquadah" .
- [0 0 0 1 0 0 0 0])
- ("alias" .
- [2 0 0 0 0])
- ("export" .
- [2 0 0 0 0 0])
- (":use" .
- [1 0 0 0])
- ("opennlp.nlp" .
- [0 0 0 0 0 0 0 0 0 0 1])
- (":only" .
- [3 0 0 0 0])
- ("defn" .
- [5 0 0 0])
- ("test" .
- [2 0 0 0])
- ("text" .
- [6 0 0 0])
- ("def" .
- [1 0 0])
- ("atom" .
- [1 0 0 0])
- ("nil" .
- [2 0 0])
- ("tokenize" .
- [1 0 0 0 1 2 0 1])
- (":pre" .
- [1 0 0 0])
- ("not" .
- [2 0 0])
- ("nil?" .
- [1 0 0 0])
- ("s-detect" .
- [0 0 0 1 4 0 0 0])
- ("token" .
- [0 0 0 1 0])
- ("detokenize" .
- [0 0 0 0 3 1 0 0 0 0])
- ("sentences" .
- [3 0 0 0 0 0 0 0 0])
- ("match-text" .
- [0 0 0 0 0 1 1 0 0 0])
- ("tokens" .
- [5 0 0 0 0 0])
- ("normal-text" .
- [0 0 0 0 0 1 0 0 0 1 0])
- ("partial" .
- [0 0 0 0 0 0 1])
- ("swap!" .
- [1 0 0 0 0])
- ("make-sentence-detector" .
- [0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0])
- ("make-tokenizer" .
- [0 0 0 0 0 0 0 1 0 0 0 0 0 0])
- ("make-detokenizer" .
- [0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0])
- ("me" .
- [1 0])
- ("force" .
- [3 0 0 0 0])
- ("and" .
+ ("doc" .
[1 0 0])
- ("namespace" .
- [0 0 1 0 0 0 0 0 0])
- ("complement" .
- [0 0 0 0 0 0 1 0 0 0])
- ("doseq" .
- [1 0 0 0 0])
- ("filter" .
- [1 0 0 0 0 0])
- ("identity" .
- [1 0 0 0 0 0 0 0])
- ("do" .
- [2 0])
- ("replace" .
- [1 0 0 0 0 0 0])
- ("string" .
- [1 0 0 0 0 0])
- ("1.2.1" .
- [1 0 0 0 0])
- ("elinks" .
- [1 0 0 0 0 0])))
+ ("println" .
+ [1 0 0 0 0 0 0])))
View
39 .emacs.d/hinmanm.el
@@ -35,8 +35,7 @@
(defclojureface clojure-namespace "#c476f1" "Clojure namespace")
(defclojureface clojure-java-call "#729FCF" "Clojure Java calls")
(defclojureface clojure-special "#1BF21B" "Clojure special")
-(defclojureface clojure-double-quote "#1BF21B" "Clojure special"
- (:background "unspecified"))
+(defclojureface clojure-double-quote "#1BF21B" "Clojure special")
(defun tweak-clojure-syntax ()
(mapcar (lambda (x) (font-lock-add-keywords nil x))
@@ -347,11 +346,9 @@
;; ==== Auto-complete (1.3.1) ====
(add-to-list 'load-path (concat "~/.emacs.d/"
- (user-login-name)
- "/auto-complete"))
+ (user-login-name) "/auto-complete"))
(require 'auto-complete-config)
-(add-to-list 'ac-dictionary-directories (concat "~/.emacs.d/"
- (user-login-name)
+(add-to-list 'ac-dictionary-directories (concat "~/.emacs.d/" (user-login-name)
"/auto-complete/ac-dict"))
(ac-config-default)
@@ -379,7 +376,7 @@
;; ==== copy-paste on Mac ====
(defun mac-copy ()
-(shell-command-to-string "pbpaste"))
+ (shell-command-to-string "pbpaste"))
(defun mac-paste (text &optional push)
(let ((process-connection-type nil))
@@ -396,13 +393,13 @@
;; ==== path env stuff ====
(defun add-to-path (path-element)
"Add the specified path element to the Emacs PATH"
- (interactive "DEnter directory to be added to path: ")
- (if (file-directory-p path-element)
- (setenv "PATH"
- (concat (expand-file-name path-element)
- path-separator (getenv "PATH")))))
+ (interactive "DEnter directory to be added to path: ")
+ (if (file-directory-p path-element)
+ (setenv "PATH"
+ (concat (expand-file-name path-element)
+ path-separator (getenv "PATH")))))
-(add-to-path "/Users/hinmanm/bin")
+(add-to-path (concat "~/bin"))
(add-to-path "/usr/local/bin")
@@ -423,14 +420,14 @@
;; ==== M-n, M-p ====
(defun scroll-down-keep-cursor ()
- ;; Scroll the text one line down while keeping the cursor
- (interactive)
- (scroll-down 1))
+ ;; Scroll the text one line down while keeping the cursor
+ (interactive)
+ (scroll-down 1))
(defun scroll-up-keep-cursor ()
- ;; Scroll the text one line up while keeping the cursor
- (interactive)
- (scroll-up 1))
+ ;; Scroll the text one line up while keeping the cursor
+ (interactive)
+ (scroll-up 1))
(global-set-key (kbd "M-n") 'scroll-down-keep-cursor)
(global-set-key (kbd "M-p") 'scroll-up-keep-cursor)
@@ -438,7 +435,9 @@
;; ==== Emacs Client Setup ====
-(server-start)
+;; only start the server for the graphical one
+(when (eq window-system 'ns)
+ (server-start))
2  .oh-my-zsh
@@ -1 +1 @@
-Subproject commit c81cddf4f2156fe06f6a93a91cdb84e39c0a43fa
+Subproject commit ed990f61ff66a5c409ef2d8a444820cecf098188
Please sign in to comment.
Something went wrong with that request. Please try again.