Emacs 将eshell提示放置到另一行

Emacs 将eshell提示放置到另一行,emacs,Emacs,我的埃塞尔提示是 ~ λ cd Documents/ ~/Documents λ 我怎样才能转到另一行呢 ~/Documents λ: 自定义用户选项eshell提示功能,C-h v显示 返回Eshell提示字符串的函数。 确保更新eshell prompt regexp 提示 比如说, (defun your-eshell-prompt-function () (setq eshell-prompt-regexp "^λ: ") (format "%s\nλ: " (abb

我的埃塞尔提示是

~ λ cd Documents/

~/Documents λ 
我怎样才能转到另一行呢

~/Documents 
λ: 

自定义用户选项
eshell提示功能
C-h v
显示

返回Eshell提示字符串的函数。
确保更新eshell prompt regexp

提示

比如说,

(defun your-eshell-prompt-function ()
  (setq eshell-prompt-regexp "^λ: ")
  (format "%s\nλ: " (abbreviate-file-name (eshell/pwd))))

(setq eshell-prompt-function #'your-eshell-prompt-function)

顺便说一句,如果您的提示是彩色的,您可能需要禁用
eshell突出显示提示

自定义用户选项
eshell提示功能
C-h v

返回Eshell提示字符串的函数。
确保更新eshell prompt regexp

提示

比如说,

(defun your-eshell-prompt-function ()
  (setq eshell-prompt-regexp "^λ: ")
  (format "%s\nλ: " (abbreviate-file-name (eshell/pwd))))

(setq eshell-prompt-function #'your-eshell-prompt-function)
顺便说一下,如果您的提示是彩色的,您可能需要禁用
eshell高亮显示提示