把当前文件夹转换成一个 cd 命令跳转,当前文件夹是
"/home/q/annex/结题/"
转换后变成
cd "/home/q/annex/\结\题/"
terminal 就不认了,我用的是 guake
(use-package terminal-here
:config
(defun my-terminal-here-terminal-command (dir)
(list "guake" "-s" "0" "--show" "-e"
(concat "cd \"" (shell-quote-argument (expand-file-name dir)) "\"")))
(setq terminal-here-terminal-command 'my-terminal-here-terminal-command))