diff options
author | Amin Bandali <amin@aminb.org> | 2018-04-20 19:17:14 -0400 |
---|---|---|
committer | Amin Bandali <amin@aminb.org> | 2018-04-20 19:17:14 -0400 |
commit | bab98ee5ee2763f7f5eca67c482a523a5bec929c (patch) | |
tree | b2fc7e53ca154eb87513ea0a96093ec756bfec3e | |
parent | 6089982a89bcec4c02874f5a2af5cd879a473017 (diff) | |
download | configs-bab98ee5ee2763f7f5eca67c482a523a5bec929c.tar.gz configs-bab98ee5ee2763f7f5eca67c482a523a5bec929c.tar.xz configs-bab98ee5ee2763f7f5eca67c482a523a5bec929c.zip |
set `custom-file' and load it
-rw-r--r-- | emacs/.gitignore | 1 | ||||
-rw-r--r-- | emacs/init.org | 29 |
2 files changed, 22 insertions, 8 deletions
diff --git a/emacs/.gitignore b/emacs/.gitignore index 2de0f3c..46eda09 100644 --- a/emacs/.gitignore +++ b/emacs/.gitignore @@ -1,6 +1,7 @@ *.elc /init.el /auto-save-list/ +/etc/ /var/ /elpa/ /recentf diff --git a/emacs/init.org b/emacs/init.org index 7c74728..bca8b9f 100644 --- a/emacs/init.org +++ b/emacs/init.org @@ -56,14 +56,6 @@ file. ;;; Code: #+end_src -** Org - -#+begin_src emacs-lisp -(setq org-src-tab-acts-natively t - org-src-preserve-indentation nil - org-edit-src-content-indentation 0) -#+end_src - ** Startup time Measure and display startup time. Also, temporarily increase @@ -97,6 +89,27 @@ Reset the variables back to default after init. ,load-file-name elapsed)))) #+end_src +** Custom file (=custom.el=) + +I'm not planning on using the custom file much, but even so, I +definitely don't want it mixing with =init.el=. So, here, let's give +it it's own file. + +#+begin_src emacs-lisp +(setq custom-file (expand-file-name + "etc/custom.el" + user-emacs-directory)) +(load custom-file) +#+end_src + +** Org + +#+begin_src emacs-lisp +(setq org-src-tab-acts-natively t + org-src-preserve-indentation nil + org-edit-src-content-indentation 0) +#+end_src + * Footer #+begin_src emacs-lisp :comments none |