简体   繁体   English

ubuntu上的emacs定制

[英]emacs customization on ubuntu

hi im new to ubuntu and very very new to emacs I've installed them and happily editing files and doing all other things except for the emacs doesn't work for me the way it is supposed to. 嗨,我是ubuntu的新手,而emacs则很新,我已经安装了它们并愉快地编辑文件并执行除emacs之外的所有其他工作,这对我来说不起作用。 No syntax highlighting and code hinting and the awful color theme is hurting my eyes please help me configure it have been searching for this on google for about 10-15 hours and ended up instructions like this that i dont even understand : 没有语法高亮和代码提示,可怕的色彩主题困扰着我的眼睛,请帮助我配置它已经在Google上搜索了大约10-15个小时,最终出现了我什至不明白的指示:

(add-to-list 'load-path "/path/to/color-theme.el/file")
(require 'color-theme)
(eval-after-load "color-theme"
 '(progn
    (color-theme-initialize)
    (color-theme-hober)))
  1. Add package repositories: 添加软件包存储库:

     (package-initialize) (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/")) (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/")) 
  2. Mx package-list-packages . Mx package-list-packages

  3. Select some theme, eg zenburn-theme (you can use Cs to search for it). 选择一些主题,例如zenburn-theme (您可以使用Cs进行搜索)。
  4. Mark for install with i and execute install with x . i标记要安装,然后用x进行安装。
  5. Test this in *scratch* *scratch*测试

     (require 'zenburn-theme) 
  6. If you like it, add it permanently to ~/.emacs , otherwise keep browsing the repositories. 如果喜欢,请将其永久添加到~/.emacs ,否则继续浏览存储库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM