X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=emacs.d%2Fconfig.org;h=90b3ad1a80b6e14521ab6695e1a6df56f15c10db;hb=225141d6f7444d2bc6cbff3b3998d463e6ecacb9;hp=1b39c87a2a490cf298fe987f05e8584ae332bf95;hpb=0184a052d37149c6de1fdbab15ba19c140da78c7;p=dotfiles.git diff --git a/emacs.d/config.org b/emacs.d/config.org index 1b39c87..90b3ad1 100644 --- 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) - (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) - (message "wowo is %s" default-directory) - (message "wowo is %s" (file-name-directory (buffer-name))) (insert (format "cd %s" default-directory)) (eshell-send-input))))