【问题标题】:How to set font size in emacs 24 installed in gentoo如何在安装在gentoo的emacs 24中设置字体大小
【发布时间】:2013-09-29 01:00:16
【问题描述】:

发现emacs 24不能使用c-x c-+和c--来改变字体大小。

一旦我输入 c-x c-+,文本区域下方的水平条会显示 (Emacs-Lisp +1 h1-p),如果我进一步按 c-+,+ 符号后面的数字会增加。也在迷你吧里,上面写着

Use +,-,0 for further adjustment

但是,文本区域中的字体大小根本没有改变

我也关注了How to set the font size in Emacs?,它似乎也不起作用。

在 emacs wiki 中,它也没有给出详细的解决方案...... http://www.emacswiki.org/emacs/SetFonts

我的emacs版本是

GNU Emacs 24.3.1
Copyright (C) 2013 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

和系统

Linux mybox 3.10.7-gentoo #1 SMP Mon Sep 2 16:48:35 Local time zone must be set--see zic m x86_64 AMD E-450 APU with Radeon(tm) HD Graphics AuthenticAMD GNU/Linux

提前致谢!

【问题讨论】:

    标签: fonts emacs24 gentoo


    【解决方案1】:

    好的,我终于解决了这个问题,这是由于编译过程中缺少标志。基于 http://wiki.gentoo.org/wiki/Project:Emacs/GNU_Emacs_developer_guide

    gconf    Use gconf to read the system font name (Emacs 23 and above).
    gsettings    Use gsettings (glib) to read the system font name (Emacs 24 and above).
    gconf    Use gconf to read the system font name (Emacs 23 and above).
    

    但它们并未作为默认编译启用。

    所以我补充

    echo  'app-editors/emacs xft gsettings gconf' >> /etc/portage/package.use
    

    然后重新编译并构建 emacs。

    终于有了

    $ ldd `which emacs` | grep libXft
    libXft.so.2 => /usr/lib64/libXft.so.2 (0x00007f9c1eed6000)
    

    【讨论】:

      猜你喜欢
      • 2010-09-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多