【问题标题】:default font for spacemacs only changes inside terminalspacemacs 的默认字体仅在终端内更改
【发布时间】:2020-04-10 18:49:33
【问题描述】:

我尝试了以下方法:

  1. 在我的 .spacemacs 中包含以下内容
dotspacemacs-default-font '("Fira Code" 
:size 16 
:weight normal  
:width normal  
:powerline-scale 1.1) 
  1. 做选项,设置默认字体,保存选项

它们都没有真正更新我的字体设置。当我重新启动 spacemacs 时,字体恢复为默认的 12pt Source Code Pro。但是,当我运行 spacemacs -nw 以便 spacemacs 在我的终端内运行时,我的字体设置将被保留。我做错了什么?

我的 emacs 版本是 26.3。

谢谢!

【问题讨论】:

    标签: emacs spacemacs


    【解决方案1】:

    黑客发现here: 如果我添加

    (set-face-attribute 'default nil :family "Fira Code")
     (set-face-attribute 'default nil :height 160)
    

    到我的.spacemacs上面自动生成的设置字体的代码,就可以了。

    【讨论】:

      猜你喜欢
      • 2017-11-10
      • 2016-01-30
      • 2018-04-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-11
      • 2017-04-20
      • 1970-01-01
      相关资源
      最近更新 更多