blob: 8b8a418020459e034013ab5ebe1a8975a02ce091 (
plain)
1
2
3
4
5
6
7
8
|
#+title: Emacs Force the Usage of a =custom.el= File
Force the usage of a =custom.el= file for customizations instead of placing them in =init.el=.
#+begin_src emacs-lisp :tangle ~/.config/emacs/force-custom-file.el :mkdirp yes
(setq custom-file (concat user-emacs-directory "custom.el"))
(when (file-exists-p custom-file)
(load custom-file))
#+end_src
|