From 12856e4dc9e028a0cbb6a21dacb8afc3dc3e1521 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sun, 27 Jan 2019 22:22:00 -0500 Subject: [PATCH] Put the actual init file into the repo too --- emacs/.emacs.d/init.el | 3 +++ emacs/init.org | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 emacs/.emacs.d/init.el diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el new file mode 100644 index 0000000..4c4c388 --- /dev/null +++ b/emacs/.emacs.d/init.el @@ -0,0 +1,3 @@ +(setq vc-follow-symlinks t) +(require 'org) +(org-babel-load-file (expand-file-name "~/init.org")) diff --git a/emacs/init.org b/emacs/init.org index cdcd39b..4116304 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -242,6 +242,14 @@ And this function persists a variable: (prin1-to-string vars-plist) nil file))))) #+END_SRC +* Customization File +I don't want anything to write to my init.el, so save customizations in a separate file: +#+BEGIN_SRC emacs-lisp + (setq custom-file (expand-file-name "~/.emacs.d/custom.el")) + (when (file-exists-p custom-file) + (load custom-file)) +#+END_SRC + * Dropbox I put lots of stuff in Dropbox, but the actual folder location differs on my different computers. This function resolves to the Dropbox directory: #+BEGIN_SRC emacs-lisp