Skip to content

Instantly share code, notes, and snippets.

@jmjoy
jmjoy / init.el
Created July 16, 2018 08:28
Emacs start with other configuraction file instead of ~/.emacs.d/init.el should include below codes.
;; Emacs start with other configuraction file instead of `~/.emacs.d/init.el` should include below codes.
;; `emacs -q -l location/of/init.el`
(setq user-emacs-directory (file-name-directory (or load-file-name buffer-file-name)))
(setq user-init-file (expand-file-name "init.el" user-emacs-directory))