开发者

Stop emacs from opening window automatically

开发者 https://www.devze.com 2023-03-11 12:43 出处:网络
This question probably applies to other emacs modes than haskell-mode, since I assume emacs has got a general way of opening windows for automatically created buffers:

This question probably applies to other emacs modes than haskell-mode, since I assume emacs has got a general way of opening windows for automatically created buffers:

haskell-mode for emacs enables me to h开发者_开发技巧it C-c C-l to load the contents of the current buffer into a Haskell interactive session, which automatically causes emacs to open the buffer for the session in a split window in the current frame. Since I am running a setup with multiple emacs clients connected to a server, I really don't want to show the buffer in each open frame I've got. Is there a way to prevent emacs from doing this kind of thing?


Ah, I found a solution just after posting this :).

Adding

(setq special-display-buffer-names
      '("*haskell*" "*Help*"))

to my .emacs tells emacs to open these buffers in a frame instead of a split.

Edit: But still, an even better solution would be for emacs never to create frames/splits automatically, but just silently create special buffers in the background. I can't figure out how to specify this though.


in init.el

(setq split-height-threshold 5)
(setq split-width-threshold 5)
0

精彩评论

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

关注公众号