"Invert the `default' face (swap its background and foreground).
Effectively a very simple light/dark theme toggle switch."
(interactive)
- (invert-face 'default)
- (when (display-graphic-p)
- (invert-face 'mode-line)))
+ (invert-face 'default (selected-frame))
+ (invert-face 'mode-line (selected-frame)))
(defun b/export-frame ()
(interactive)
;; 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)