From 7b26f86f8ce1ae2aad7bea4000004b28bd6a081c Mon Sep 17 00:00:00 2001 From: taptap Date: Sat, 12 May 2018 16:09:47 +0300 Subject: [PATCH] fix bug with alect-theme requiring confirmation on each emacs start Themes are being marked safe in custom.el file, so we must load that file before loading the theme. --- .emacs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.emacs b/.emacs index a097d05..578ee49 100755 --- a/.emacs +++ b/.emacs @@ -21,14 +21,17 @@ (dolist (mode-hook mode-hook-list) (add-hook mode-hook hook))) -(use-package alect-themes - :config - (load-theme 'alect-black)) - (use-package use-package :init (setq use-package-always-ensure t)) +(setq custom-file "~/.emacs.d/custom.el") +(load custom-file) + +(use-package alect-themes + :config + (load-theme 'alect-black)) + (use-package helm :demand t :bind (("M-x" . helm-M-x) @@ -107,8 +110,6 @@ erc-kill-queries-on-quit t erc-kill-server-buffer-on-quit t) -(setq custom-file "~/.emacs.d/custom.el") -(load custom-file) (put 'narrow-to-region 'disabled nil) (add-hook 'c-mode-common-hook