改变Emacs minibuffer的字体大小与默认emacs分开? [英] Altering the font size for the Emacs minibuffer separately from default emacs?

查看:455
本文介绍了改变Emacs minibuffer的字体大小与默认emacs分开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在试图改变emacs minibuffer的字体/脸部与emacs默认字体分开,但没有太多的运气。



具体来说,我有兴趣在使用emacs MULE作为minibuffer字体大小时,使用我当前的字体设置,或者如果我在上网本屏幕上使用emacs,有时候MULE中的字符选择选项有点小。



在emacs中轻松访问的选项是minibuffer-prompt& minibuffer-prompt-properties,但这些仅用于命令提示符,而不是常规的minibuffer文本。



似乎有一些minibuffer变量在emacs中列出,用于创建minibuffer框架,或从minibuffer窗口等获取内容,但这些不适用于改变minibuffer面。是否可以将默认emacs分开更改minibuffer面?



一个有趣的选项是oneonone emacs http://www.emacswiki.org/emacs/OneOnOneEmacs 项目。但是可以改变专用的微型缓冲器框架吗?在我改变我目前的emacs设置之前,我希望能够首先改变字体或创建我自己的可变的minibuffer框架等。


解决方案

您可以通过<$>添加自定义到minibuffer C $ C>小缓冲区-设置钩。在那里,您可以像这样做一些面部重新映射

 (add-hook'minibuffer-setup-hook'my-minibuffer-setup)
(defun my- minibuffer-setup()
(set(make-local-variable'face-remapping-alist)
'((默认值:height 2.0))))

根据需要更改 my-minibuffer-setup 的正文。上述两种方式使默认面的高度翻倍。


I've been attempting to alter the font / face for the emacs minibuffer separately from emacs default fonts, but without much luck.

Specifically, I'm interested in making the minibuffer font size larger for use with the emacs MULE as, with my current font setting or if I'm using emacs on a "netbook" screen, sometimes the character selection options in the MULE are a bit small.

Options easily accessed within emacs are the minibuffer-prompt & minibuffer-prompt-properties, but these are only for command prompts and not the regular minibuffer text.

There seem to be a number of minibuffer variables listed in emacs for creating minibuffer frames, or getting contents from minibuffer windows, etc.. but these do not pertain to altering the minibuffer face. Is it even possible to alter the minibuffer face separately from the default emacs?

An interesting option is the oneonone emacs http://www.emacswiki.org/emacs/OneOnOneEmacs project. But could the dedicated minibuffer frame be altered? Also before I alter my current emacs set-up that drastically, I'd hope to be able to just alter fonts first or create my own alterable minibuffer frame, etc...

Any help and/or creative ideas would be greatly appreciated.

解决方案

You can add customization to the minibuffer through the minibuffer-setup-hook. In there, you can do some face remapping like so:

(add-hook 'minibuffer-setup-hook 'my-minibuffer-setup)
(defun my-minibuffer-setup ()
       (set (make-local-variable 'face-remapping-alist)
          '((default :height 2.0))))

Change the body of the my-minibuffer-setup as desired. The above doubles the height of the default face.

这篇关于改变Emacs minibuffer的字体大小与默认emacs分开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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