From cdcd5779395fd75e7f5158ce73715767567b75c0 Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Fri, 20 Sep 2024 18:35:37 +0200 Subject: [PATCH] INIT: Move customization to its own file that we can ignore --- .gitignore | 1 + init.el | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ea8f90 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +custom.el diff --git a/init.el b/init.el index bd22fe2..2676b28 100644 --- a/init.el +++ b/init.el @@ -4,13 +4,12 @@ ;;; https://jonnay.github.io/emagicians-starter-kit/Emagician-Base.html ;;; ... (let ((gc-cons-threshold most-positive-fixnum)) + (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) ;; This is the actual config file. It is omitted if it doesn't exist so emacs won't refuse to launch. (defvar my-config-file (expand-file-name "config_new.org" user-emacs-directory)) (when (file-readable-p my-config-file) (org-babel-load-file (expand-file-name my-config-file))) - ;; If it exists, load some project-specific configurations. - ;;(when (file-readable-p project-file) - ;; (org-babel-load-file (expand-file-name project-file))) + (load custom-file) )