可以将emacs minibuffer移动到屏幕的顶部吗? [英] is it possible to move the emacs minibuffer to the top of the screen?

查看:99
本文介绍了可以将emacs minibuffer移动到屏幕的顶部吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始在30英寸显示器上进行编码,并且想知道是否可以使用emacs将minibuffer移动到屏幕顶部?



Cheers
Nimai Etheridge

解决方案

查看 default-minibuffer-frame initial-frame-alist vars。这听起来像你可能有一个单独的框架为您的迷你缓冲区(您可以在屏幕的顶部位置),然后生成使用它的无缓冲区框架。



请注意,在 initial-frame-alist 中,它指出如果值调用一个没有minibuffer的框架,并且您还没有自己创建一个minibuffer框架,

>有一些保存和恢复框架配置的方法,所以如果这样工作,你可能可以在emacs启动时自动重新创建布局。



编辑:

以下用于使用此框架排列的非常基本的示例/概念验证。在使用它的帧已被删除之前,无法删除微型缓冲区框架。当您执行最大化编辑框架的操作时,您将遇到麻烦,当然,所以肯定会有一些工作要尝试使系统以更加无缝的方式工作。

 (setq default-minibuffer-frame 
(make-frame
'((name。minibuffer)
(width。 80)
(height。1)
(仅限于minibuffer)
(顶0)
(左。0)
)))
setq new frame
(make-frame
'((name。editor)
(width。80)
(height。30)
(minibuffer。
(最高50)
(左。0)
)))

当然,您也可以将这与Scottfrazer将modeline移动到顶部的方法相结合。



这可能会在 window-setup-hook



你还应该看看内置的frame.el和dframe.e l图书馆。诸如 dframe-reposition-frame 之类的功能可以提供一种方便的方式,将minibuffer框架附加到活动编辑框的顶部。



变量 minibuffer-auto-raise 也可以配置为在启动minibuffer时提升minibuffer框架,这可能会减轻需要剩下的时间可见。


I've started coding on a 30 inch monitor and am wondering if it's possible to move the minibuffer to the top of the screen in emacs? google searches aren't showing up anything.

Cheers Nimai Etheridge

解决方案

Have a look at the documentation for the default-minibuffer-frame and initial-frame-alist vars. It sounds like you may be able to have a separate frame for your minibuffer (which you could position at the top of the screen), and then generate minibufferless frames which utilise it.

Note that in initial-frame-alist it states that "If the value calls for a frame without a minibuffer, and you have not created a minibuffer frame on your own, a minibuffer frame is created according to minibuffer-frame-alist", which sounds like exactly what would be needed.

There are ways of saving and restoring frame configurations, so if this worked you could probably recreate the layout automatically when emacs starts.

Edit:
Very basic example/proof-of-concept below for using this frame arrangement. The minibuffer frame can't be deleted until the frames utilising it have been deleted. You'll run into trouble when you do things like maximising the editor frame, of course, so there would certainly be some work to do to try to make this system work in a more seamless fashion.

(setq default-minibuffer-frame
      (make-frame
       '((name . "minibuffer")
         (width . 80)
         (height . 1)
         (minibuffer . only)
         (top . 0)
         (left . 0)
         )))
(setq new-frame
      (make-frame
       '((name . "editor")
         (width . 80)
         (height . 30)
         (minibuffer . nil)
         (top . 50)
         (left . 0)
         )))

Naturally, you can also combine this with scottfrazer's method of moving the modeline to the top.

This could possibly be handled in the window-setup-hook?

You should also look at the built-in frame.el and dframe.el libraries. Functions like dframe-reposition-frame may provide a convenient way of keeping the minibuffer frame 'attached' to the top of the active editing frame.

The variable minibuffer-auto-raise can also be configured to raise the minibuffer frame whenever the minibuffer is activated, which may mitigate the need to have it visible the rest of the time.

这篇关于可以将emacs minibuffer移动到屏幕的顶部吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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