what is custom-set-variables and faces in my .emacs?

后端 未结 3 912
别那么骄傲
别那么骄傲 2021-02-12 10:17

this is in my .emacs can I mess with it or not?

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess          


        
3条回答
  •  感情败类
    2021-02-12 10:52

    These blocks are added by the customize interface, as Noufal pointed out. You can move them to a separate file, though, if you like.

    Just add this to your ~/.emacs.d/init.el:

    (setq custom-file "~/.emacs.d/custom.el")
    (load custom-file)
    

    or, if you're still using an old-fashioned ~/.emacs file:

    (setq custom-file "~/.custom.el")
    (load custom-file)
    

    A slightly more complex snippet that will work in either case is:

    (setq custom-file (expand-file-name "custom.el" user-emacs-directory))
    (load custom-file)
    

提交回复
热议问题