代码之家  ›  专栏  ›  技术社区  ›  oscarcardoso

如何更改Emacs init文件以自定义新帧的字体?

  •  1
  • oscarcardoso  · 技术社区  · 16 年前

    我想知道,我必须在.emacs文件中输入什么文本,以便它在新帧上使用特定的字体(如干净的5x8),例如速度条。我可以使用SHIFT LeftClick修改速度条字体大小和类型,但我希望它在默认情况下保持不变。

    4 回复  |  直到 14 年前
        1
  •  3
  •   Svante    16 年前

    "-*-*-medium-r-normal--16-*-*-*-*-*-fontset-osaka"
    

    第二种选择是在.emacs中实际设置默认帧列表。

    这里有一个提示:按照你喜欢的方式设置你当前的框架,然后键入

    (pp (current-frame-configuration))^J
    

    *scratch* 缓冲区以找出所有帧参数。

        2
  •  1
  •   Drew    14 年前

    自定义选项 default-frame-alist 故事到此为止。

    有关字体更改,请参阅此页面: http://www.emacswiki.org/emacs/SetFonts .

        3
  •  0
  •   user108761 user108761    16 年前

    /etc/X11/Xresources/ /etc/X11/Xresources/emacs ):

    emacs*font: 7x14
    

    随后可能还有其他不同的选项:

    emacs*Background: DarkSlateGray
    emacs*Foreground: Wheat
    emacs*pointerColor: Orchid
    emacs*cursorColor: Orchid
    emacs*bitmapIcon: on
    emacs.geometry: 100x40
    

    emacs.font -*-*-medium-r-normal--14-130-75-75-c-70-fontset-startup
    

    (pp (current-frame-configuration))^J
    

    *scratch*

        4
  •  0
  •   huaiyuan    16 年前
    (eval-after-load 'speedbar
      (add-to-list 'speedbar-frame-parameters '(font . "5x8")))
    

    M-x customize-variable
    speedbar-frame-parameters