Created
June 29, 2010 22:37
-
-
Save ieure/457933 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; I use customize for this: | |
'(ssh-directory-tracking-mode t) | |
(eval-after-load 'ssh | |
'(progn | |
(add-hook 'ssh-mode-hook | |
(lambda () | |
(shell-dirtrack-mode t) | |
(setq dirtrackp nil) | |
(setq show-trailing-whitespace nil))) | |
(defadvice ssh (around ssh-always-local first activate) | |
(let ((default-directory "~/")) | |
ad-do-it)))) | |
(eval-after-load 'shell | |
'(progn | |
(defadvice comint-send-input (before expand-input activate) | |
"Expand input before sending" | |
(expand-abbrev)) | |
(add-hook 'shell-mode-hook | |
(lambda () | |
(ansi-color-for-comint-mode-on) | |
(setq shell-dirtrackp nil) | |
(dirtrack-mode t) | |
(setq show-trailing-whitespace nil))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment