projects
/
dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0184a05
)
emacs - fix bug sd/eshell-here
author
Peng Li
<seudut@gmail.com>
Sat, 2 Jul 2016 13:19:24 +0000
(21:19 +0800)
committer
Peng Li
<seudut@gmail.com>
Sat, 2 Jul 2016 13:19:24 +0000
(21:19 +0800)
emacs.d/config.org
patch
|
blob
|
history
diff --git
a/emacs.d/config.org
b/emacs.d/config.org
index
1b39c87
..
90b3ad1
100644
(file)
--- a/
emacs.d/config.org
+++ b/
emacs.d/config.org
@@
-1257,13
+1257,11
@@
Quickly start eshll in split window below, refer [[http://www.howardism.org/Tech
(progn
(split-window-vertically (- (/ (window-total-height) 3)))
(other-window 1)
(progn
(split-window-vertically (- (/ (window-total-height) 3)))
(other-window 1)
- (unless (
get-buffer eshell-buffer-name
)
+ (unless (
and (boundp 'eshell-buffer-name) (get-buffer eshell-buffer-name)
)
(eshell))
(switch-to-buffer eshell-buffer-name)
(goto-char (point-max))
(eshell-kill-input)
(eshell))
(switch-to-buffer eshell-buffer-name)
(goto-char (point-max))
(eshell-kill-input)
- (message "wowo is %s" default-directory)
- (message "wowo is %s" (file-name-directory (buffer-name)))
(insert (format "cd %s" default-directory))
(eshell-send-input))))
(insert (format "cd %s" default-directory))
(eshell-send-input))))