From 496165b34698f65fe6a36fe8668a404ed86b6dfe Mon Sep 17 00:00:00 2001 From: Daniel Weschke Date: Sat, 5 Dec 2020 21:36:25 +0100 Subject: [PATCH] move loading of custom.el to the beginning --- settings/org-settings.el | 1 - settings/post-settings.el | 6 ------ settings/pre-settings.el | 6 ++++++ 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/settings/org-settings.el b/settings/org-settings.el index b527aef3..de1117da 100644 --- a/settings/org-settings.el +++ b/settings/org-settings.el @@ -971,7 +971,6 @@ used as a communication channel." (use-package org-drill ;; requires persist https://elpa.gnu.org/packages/persist.html :commands org-drill) -;; define `org-brain-path' in custom. (use-package org-brain ;; uses org-id If you find that org-brain is missing entries, or list entries which doesn’t exist, try using M-x org-brain-update-id-locations, which syncs the org-brain entries with the org-id caching system. :commands (org-brain-visualize) :init diff --git a/settings/post-settings.el b/settings/post-settings.el index d414073b..35999c56 100644 --- a/settings/post-settings.el +++ b/settings/post-settings.el @@ -3,11 +3,5 @@ ;;; Code: (setq gc-cons-threshold (* 2 1000 1000)) ;; Make gc pauses faster by decreasing back the threshold. See also above. -(use-package cus-edit - :config - (setq custom-file (concat user-emacs-directory "custom.el")) - (setq custom-buffer-done-kill t) - (load custom-file t t)) - (provide 'post-settings) ;;; post-settings.el ends here diff --git a/settings/pre-settings.el b/settings/pre-settings.el index b501c59a..4b66adfe 100644 --- a/settings/pre-settings.el +++ b/settings/pre-settings.el @@ -51,5 +51,11 @@ Both Win32 and Cygwin count.") (if (require 'dbus) (dbus-ping :session "org.freedesktop.Notifications"))) ;; is not enough "Check if DBus is available.") +(use-package cus-edit + :config + (setq custom-file (concat user-emacs-directory "custom.el")) + (setq custom-buffer-done-kill t) + (load custom-file t t)) + (provide 'pre-settings) ;;; pre-settings.el ends here