From 831031aa3a608eb7aba062984e9b4ce1bfb6f253 Mon Sep 17 00:00:00 2001 From: laurensmiers Date: Mon, 9 Sep 2019 09:27:03 +0200 Subject: [PATCH] Add project-specific config file option --- init.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index d44a18b..3101650 100644 --- a/init.el +++ b/init.el @@ -17,10 +17,14 @@ (package-refresh-contents) (package-install 'use-package)) -;;; This is the actual config file. It is omitted if it doesn't exist so emacs won't refuse to launch. +;; This is the actual config file. It is omitted if it doesn't exist so emacs won't refuse to launch. (when (file-readable-p "~/.emacs.d/config.org") (org-babel-load-file (expand-file-name "~/.emacs.d/config.org"))) +;; If it exists, load some project-specific configurations. +(when (file-readable-p "~/.emacs.d/project.org") +(org-babel-load-file (expand-file-name "~/.emacs.d/project.org"))) + (provide 'init) (custom-set-variables ;; custom-set-variables was added by Custom.