emacs如何选择初始化哪个脚本?

时间:2019-06-20 14:00:22

标签: emacs

在Ubuntu 18.10上的emacs 25.2.2和arch上的26.2中,我们都遇到以下奇怪的行为:

Ubuntu 18: 我的主目录中有一个.emacs文件。 如果我运行emacs,它会起作用

.emacs设置缩进样式,字体和颜色

(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(default ((t (:inherit nil :stipple nil :background "white" :foreground "black" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight bold :height 180 :width normal :foundry "urw" :family "Nimbus Mono L")))))
(set-background-color "black")
(set-foreground-color "green")  

通过gnome-settings运行emacs时,它不能正确设置字体,但是可以设置缩进和颜色。因此,我得出的结论是,在首次设置gnome时,字体设置不起作用。

在arch上,运行emacs看起来不错。但是,如果我们加载文件和M-x eval-buffer,字体就会改变。评估两次会再次更改字体。第三次评估什么也没做。

任何人都可以解释发生了什么,以及无论命令何时运行,我们如何都能可靠地选择字体?

0 个答案:

没有答案