开发者

eshell Doesn't Honor display-buffer

I use display-buffer C-x 4 C-o to set a buffer to the other window. This works great unless I want to put my eshell buffer in the other window. eshell puts itself in开发者_如何学Python my current window every time.

If I prefix the command with C-u eshell switches properly. Is there a way I can make that the default?


Just do this:

(eval-after-load "eshell"
  '(eshell-remove-from-window-buffer-names))


As pmr said, defadvice seems like what you want. Just wrap the function and pass an argument to it every time. Here is the link to the gnu docs on defadvice.

http://www.gnu.org/s/emacs/manual/html_node/elisp/Simple-Advice.html#Simple-Advice

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜