在Linux中更改Emac编辑器(C)语法突出显示?

时间:2017-03-20 21:44:13

标签: linux emacs

我无法读取大部分代码,因为语法突出显示太暗;我已经尝试按照其他帖子上的步骤(例如M-x customize-face命令),但是我收到一条错误,指出找不到命令。我对emacs一无所知但是我需要在课堂上使用它 - 有人能给我一步一步来改变字体/突出显示的颜色吗?

1 个答案:

答案 0 :(得分:0)

如果你真的对emacs毫无头绪,我可以建议以下两点之一:

  1. 在您的emacs菜单栏中,选择选项 - >自定义emacs并更改您正在使用的主题。在你完成之后别忘了保存!
  2. 从具有您喜欢的颜色的人那里通过网络获取一些自定义文件,并将其添加到您的init。如果您已有自定义文件,请编辑颜色。这是这样一条线的一个例子:
    (custom-set-faces '(default ((t (:stipple nil :background "gray95" :foreground "#000000" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 150 :width normal :family "adobe-courier")))))
    关于#2的详细说明:
    emacs使用.emacs启动,检查文件(它应该在你的homedir~ / .emacs中)。 要加载文件,请将(load-file "your_file_and_path")添加到此文件中 例如
    (load-file "/users/someuser/.xemacs/custom.el")
相关问题