From c706ed750a21e7e8b6bd8929079615e1aceed62d Mon Sep 17 00:00:00 2001
From: Frederik Vanrenterghem <frederik@vanrenterghem.biz>
Date: Tue, 23 Apr 2024 21:41:34 +0800
Subject: [PATCH] Auto refresh emails and change theming options.

* Load new emails every 10 minutes when mu4e is active.
* Use variable width font in org-mode.
---
 emacs/.emacs.d/init.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 8b56c18..4d58dfe 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -11,7 +11,9 @@
 
 ;; Use light theme
 ;;(load-theme 'leuven t)
+(require 'modus-themes)
 (load-theme 'modus-operandi t)
+(setq modus-themes-mixed-fonts t)
 
 ;; ESS - for working in R
 (autoload 'R-mode "ess-site.el" "Major mode for editing R source." t)
@@ -24,6 +26,11 @@
 
 (require 'org)
 
+;; Automatically flow lines based on window width and use
+;; variable width fonts in org-mode.
+(add-hook 'org-mode-hook 'visual-line-mode)
+(add-hook 'org-mode-hook 'variable-pitch-mode)
+
 ;; Auctex
 (load "auctex.el" nil t t)
 (load "preview-latex.el" nil t t)
@@ -122,6 +129,7 @@
 (require 'mu4e)
 (setq mail-user-agent 'mu4e-user-agent)
 (setq mu4e-get-mail-command "mbsync io")
+(setq mu4e-update-interval 600)
 (setq mu4e-use-fancy-chars t)
 (setq mu4e-view-show-images t)
 (setq mu4e-sent-folder   "/Sent"
-- 
2.39.5