forked from FG42/FG42
Add support for custom emacs.d location via FG42_EMACSD
This commit is contained in:
parent
2491b7f2cf
commit
55e9037aa6
|
@ -31,11 +31,13 @@
|
||||||
|
|
||||||
(setq tab-width 2)
|
(setq tab-width 2)
|
||||||
|
|
||||||
(setq custom-file (format "%s/.fg42.custom.el" (getenv "HOME")))
|
(let ((emacsd (or (getenv "FG42_EMACSD") "~/.fg42/emacs.d")))
|
||||||
(setq user-emacs-directory "~/.fg42/emacs.d")
|
(setq custom-file (format "%s/.fg42.custom.el" emacsd))
|
||||||
(setq user-init-file
|
(setq user-emacs-directory emacsd)
|
||||||
(format "%s/.fg42.el"
|
(setq user-init-file
|
||||||
(getenv "HOME")))
|
(or (getenv "FG42_CONFIG_FILE")
|
||||||
|
(format "%s/.fg42.el"
|
||||||
|
(getenv "HOME"))))))
|
||||||
|
|
||||||
|
|
||||||
;; Load the customization file. In FG42 it is different than
|
;; Load the customization file. In FG42 it is different than
|
||||||
|
|
Loading…
Reference in New Issue