打开多个文件时如何防止emacs水平分割屏幕? [英] How do I prevent emacs from horizontally splitting the screen when opening multiple files?

查看:148
本文介绍了打开多个文件时如何防止emacs水平分割屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要能够使用emacs打开多个文件:
emacs file1 file2



并具有emacs屏幕 - 不要水平分割当emacs启动打开不同缓冲区中的文件是我期望的,只有一个文件显示在整个emacs窗口中。



那么我该怎么办?

解决方案

 (add-hook'window-setup-hook'delete-other-windows )

以我想要的方式工作...刚刚在这里询问后才发现。 >

I want to be able to open multiple files with emacs like so: emacs file1 file2

and have the emacs screen -not- be split horizontally when emacs starts up. Opening the files in different buffers is what i expect, with just one of the files displayed in the entire emacs window.

So how do I do this?

解决方案

(add-hook 'window-setup-hook 'delete-other-windows)

works the way I want... just found that out after I asked here.

这篇关于打开多个文件时如何防止emacs水平分割屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆