Permalink
Newer
Older
100644 27 lines (24 sloc) 1.03 KB
Nov 18, 2008
1
;;; starter-kit-eshell.el --- Making the defaults a bit saner
2
;;
3
;; Part of the Emacs Starter Kit
4
5
(setq eshell-cmpl-cycle-completions nil
6
eshell-save-history-on-exit t
7
eshell-cmpl-dir-ignore "\\`\\(\\.\\.?\\|CVS\\|\\.svn\\|\\.git)/\\'")
8
9
(eval-after-load 'esh-opt
10
'(progn
11
(require 'em-prompt)
12
(require 'em-term)
13
(require 'em-cmpl)
14
(setenv "PAGER" "cat")
15
(set-face-attribute 'eshell-prompt nil :foreground "turquoise1")
16
(add-hook 'eshell-mode-hook ;; for some reason this needs to be a hook
17
'(lambda () (define-key eshell-mode-map "\C-a" 'eshell-bol)))
18
(add-to-list 'eshell-visual-commands "ssh")
19
(add-to-list 'eshell-visual-commands "tail")
20
(add-to-list 'eshell-command-completions-alist
21
'("gunzip" "gz\\'"))
22
(add-to-list 'eshell-command-completions-alist
23
'("tar" "\\(\\.tar|\\.tgz\\|\\.tar\\.gz\\)\\'"))
24
(add-to-list 'eshell-output-filter-functions 'eshell-handle-ansi-color)))
25
26
(provide 'starter-kit-eshell)
27
;;; starter-kit-eshell.el ends here