Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add experimental eshell/find.

  • Loading branch information...
commit 418be9d0f95b755b4c55e8a40a6c26b9da13ce95 1 parent 0fbf41f
@technomancy technomancy authored
Showing with 12 additions and 0 deletions.
  1. +3 −0  starter-kit-eshell.el
  2. +9 −0 starter-kit-misc.el
View
3  starter-kit-eshell.el
@@ -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
View
9 starter-kit-misc.el
@@ -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
@@ -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")
Please sign in to comment.
Something went wrong with that request. Please try again.