Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Some eshell stuff is no longer necessary in 23.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Apr 8, 2010
1 parent 94be2ae commit 8c6edde
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions starter-kit-eshell.el
Expand Up @@ -11,20 +11,20 @@
(require 'em-prompt)
(require 'em-term)
(require 'em-cmpl)
;; TODO: for some reason requiring this here breaks it, but
;; requiring it after an eshell session is started works fine.
;; (require 'eshell-vc)
(setenv "PAGER" "cat")
(set-face-attribute 'eshell-prompt nil :foreground "turquoise1")
(add-hook 'eshell-mode-hook ;; for some reason this needs to be a hook
'(lambda () (define-key eshell-mode-map "\C-a" 'eshell-bol)))
(when (< emacs-major-version 23)
(add-hook 'eshell-mode-hook ;; for some reason this needs to be a hook
'(lambda () (define-key eshell-mode-map "\C-a" 'eshell-bol)))
(add-to-list 'eshell-output-filter-functions 'eshell-handle-ansi-color))

;; TODO: submit these via M-x report-emacs-bug
(add-to-list 'eshell-visual-commands "ssh")
(add-to-list 'eshell-visual-commands "tail")
(add-to-list 'eshell-command-completions-alist
'("gunzip" "gz\\'"))
(add-to-list 'eshell-command-completions-alist
'("tar" "\\(\\.tar|\\.tgz\\|\\.tar\\.gz\\)\\'"))
(add-to-list 'eshell-output-filter-functions 'eshell-handle-ansi-color)))
'("tar" "\\(\\.tar|\\.tgz\\|\\.tar\\.gz\\)\\'"))))

(defun eshell/cds ()
"Change directory to the project's root."
Expand Down

0 comments on commit 8c6edde

Please sign in to comment.