这是我在.emacs文件中的内容,我能够更改它吗?
(custom-set-variables
;; custom-set-variables 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.
)
(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.
'(better-fringes-bitmap ((t (:foreground "#00dd44"))))
'(font-lock-string-face ((((class color) (min-colors 88) (background light)) (:foreground "#113355")))))
到目前为止,我在这些行的上方添加了我想要的一切...
~/.emacs
文件”是什么意思?现在有没有其他更好的方法来使用~/.emacs
呢? - HelloGoodbye~/.emacs.d
目录,其中包含一个名为init.el
的启动文件,它的工作方式类似于~/.emacs
。这样,即使配置被拆分成多个文件,您也可以将其放置在一个自包含的位置中,并且如果存在,安装的 elisp 包也会被放置在该目录中。jan-glx 上面的评论提供了更多信息的链接。 - sanityinc~/emacs.d/
,我认为最好使用expand-file-name
:(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
- Mohammad Banisaeid~/.emacs
文件,那么user-emacs-directory
将会是~
,因此总体效果不会很一致/明确。我会编辑答案以反映这一点。 - sanityinc