Skip to content

Commit

Permalink
Add experimental eshell/find.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed May 13, 2010
1 parent 0fbf41f commit 418be9d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions starter-kit-eshell.el
Expand Up @@ -30,6 +30,9 @@
"Change directory to the project's root."
(eshell/cd (locate-dominating-file default-directory "src")))

(defun eshell/find (dir &rest opts)
(find-dired dir (mapconcat 'identity opts " ")))

;; Port features from
;; http://blog.peepcode.com/tutorials/2009/shell-method-missing/shell_method_missing.rb
;; * cloning git repos, github repos
Expand Down
9 changes: 9 additions & 0 deletions starter-kit-misc.el
Expand Up @@ -13,6 +13,7 @@
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
(ansi-color-for-comint-mode-on)

(setq visible-bell t
echo-keystrokes 0.1
Expand Down Expand Up @@ -101,11 +102,19 @@
(add-to-list 'auto-mode-alist '("\\.js\\(on\\)?$" . js2-mode))
(add-to-list 'auto-mode-alist '("\\.xml$" . nxml-mode))

(eval-after-load 'grep
'(progn
(add-to-list 'grep-find-ignored-files "target")
(add-to-list 'grep-find-ignored-files "*.class")))

;; Default to unified diffs
(setq diff-switches "-u")

;; Cosmetics

(set-face-background 'vertical-border "white")
(set-face-foreground 'vertical-border "white")

(eval-after-load 'diff-mode
'(progn
(set-face-foreground 'diff-added "green4")
Expand Down

0 comments on commit 418be9d

Please sign in to comment.