如何让我的Emacs *总是在X11上使用6x13 [英] How do I get my Emacs to *always* use 6x13 on X11

查看:133
本文介绍了如何让我的Emacs *总是在X11上使用6x13的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近宣布.emacs破产并重组了我的初始化内容。在
的过程中,我剔除了所有hacky字体选择的东西,我已经
累积了多年,认为可能更容易的方式
完成我想要的最现代版本的emacs 。

  GNU Emacs 23.0.91.1(i686-pc-linux-gnu,GTK + Version 2.14.4)
on一个GNU / Linux系统(Ubuntu 8.10)。

让我们的
忽略,目前我还在Mac OS下运行emacs X
(GUI +终端),偶尔在Windows上,只关注X11
的情况:



(背景:字体6x13已经部分的X11只要我记得(aka
misc-fixed semi-condensed ...),它是一个位图字体。)




  • 我希望emacs始终使用X11位图字体6x13。 (这给我在我的上网本上的两个缓冲区旁边。)

  • 我不想看到DejaVu Sans Mono 16pt或默认在我的上网本上出现的东西(这是巨大的我想要每个新的框架和窗口使用这种字体。

  • 我想要派生面孔(如org-mode-column)使用6x13字体并不神秘地切换回DejaVu Sans Mono

  • 我不在乎GNOME和X11认为我屏幕的逻辑DPI是什么。我想要6x13。

  • 当我远程登入我的上网本(NX机器)时,我不想看到6x10。我想要6x13。

  • 如果有任何疑问:我想要6x13



有什么规范的方法来实现这一点?



在某些smart-aleck告诉我有关菜单之前:选项>>设置默认值
字体:生成的对话框甚至不提供位图字体,所以
没有办法选择6x13。此外,它不解决org-mode的
问题:table-views仍然出现错误的字体。

解决方案

我从我的 .Xresources 文件中控制这些东西。



个人我有

  emacs.reverse视频:true 
emacs.font:7x13bold

(我相当同意...长时间使用位图字体!我将把 xterm

  XTerm *前景:绿色
XTerm *背景:黑色
XTerm *字体:7x13bold

...
在Gnome终端上任何一天)。



如果你在一个会话中玩 .Xresources xrdb 命令可以重新加载它们。 / p>

I recently declared .emacs bankrupcy and reorganized my init stuff. In the process, I ripped out all the hacky font selection stuff I had accrued over the years, figuring there are probably easier ways to accomplish what I want in the most modern version of emacs.

GNU Emacs 23.0.91.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4)
on a GNU/Linux System (Ubuntu 8.10).

Let's ignore, for the moment, the fact that I also run emacs under Mac OS X (GUI+Terminal) and occasionally on Windows and just focus on the X11 case:

(Background: The font 6x13 has been part of X11 for as long as I can remember. (a.k.a misc-fixed semi-condensed ...). It's a bitmap font.)

  • I want emacs to always use the X11 bitmap font 6x13. (This gives me two buffers next to eachother on my netbook.)
  • I don't want to see DejaVu Sans Mono 16pt or whatever the heck comes up by default on my netbook (it's huge!)
  • I want every new frame and window to use this font.
  • I want derived faces (like org-mode-column) to use 6x13 font and not mysteriously switch back to DejaVu Sans Mono
  • I don't care what GNOME and X11 think the logical DPI of my screen is. I want 6x13.
  • When I remote into my netbook (NX Machine) I don't want to see 6x10. I want 6x13.
  • In case there's any doubt: I want 6x13.

What's the canonical way to do to make this happen?

And before some smart-aleck tells me about menu: Options>>Set Default Font: the resulting dialog box doesn't even offer bitmap fonts, so there's no way to choose 6x13. Furthermore, it doesn't solve the problem with org-mode: table-views still come up with the wrong font.

解决方案

I control this stuff from my .Xresources file.

Personally I have

emacs.reverseVideo:     true
emacs.font:             7x13bold

(And I quite agree... long live the bitmap fonts! I'll take my xterm with

XTerm*foreground:       green
XTerm*background:       black
XTerm*font:             7x13bold

... over the Gnome terminal any day).

If you're playing with .Xresources from within a session, xrdb command is useful to reload them.

这篇关于如何让我的Emacs *总是在X11上使用6x13的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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