* .emacs.d/init.el: Fix logic for loading display-fill-column-indicator.
authorAmin Bandali <bandali@kelar.org>
Sun, 22 May 2022 16:48:40 +0000 (12:48 -0400)
committerAmin Bandali <bandali@kelar.org>
Sun, 22 May 2022 16:48:40 +0000 (12:48 -0400)
.emacs.d/init.el

index 4183865..e6c6a14 100644 (file)
@@ -854,11 +854,10 @@ Effectively a very simple light/dark theme toggle switch."
 ;;    org-ref-bibliography-notes "~/usr/org/notes.org"
 ;;    org-ref-pdf-directory "~/usr/org/bibtex-pdfs/"))
 
-(when (featurep 'display-fill-column-indicator)
-  (run-with-idle-timer
-   0.2 nil #'require 'display-fill-column-indicator)
-  (with-eval-after-load 'display-fill-column-indicator
-    (global-display-fill-column-indicator-mode 1)))
+(run-with-idle-timer
+ 0.2 nil #'require 'display-fill-column-indicator nil 'noerror)
+(with-eval-after-load 'display-fill-column-indicator
+  (global-display-fill-column-indicator-mode 1))
 
 (with-eval-after-load 'window
   (setq split-width-threshold 150)