Browse Source

Use custom instead of setq

main
parent
commit
9e7ea7a581
  1. 42
      modules/writing.el

42
modules/writing.el

@ -10,9 +10,8 @@
(use-package org-roam (use-package org-roam
:hook (after-init . org-roam-mode) :hook (after-init . org-roam-mode)
:custom
(org-roam-directory org-directory)
(org-roam-encrypt-files t))
:custom (org-roam-directory org-directory)
(org-roam-encrypt-files t))
(use-package org-roam-server (use-package org-roam-server
:hook (org-roam-mode . org-roam-server-mode)) :hook (org-roam-mode . org-roam-server-mode))
@ -87,25 +86,17 @@
(use-package mu4e (use-package mu4e
:load-path "/usr/share/emacs/site-lisp/mu4e" :load-path "/usr/share/emacs/site-lisp/mu4e"
:custom (mu4e-maildir "~/.cache/mail")
(mu4e-update-interval (* 5 60))
(mu4e-get-mail-command "mbsync -a")
(mu4e-compose-format-flowed t)
(mu4e-change-filenames-when-moving t)
(message-send-mail-function 'smtpmail-send-it)
(mml-secure-openpgp-signers '("37AB1CB72B741E478CA026D43025DCBD46F81C0F"))
(mu4e-compose-signature (concat "Chris Hayward\n"
"https://chrishayward.xyz\n"))
:config :config
(setq mu4e-change-filenames-when-moving t
mu4e-update-interval (* 5 60) ;; Every 5 minutes.
mu4e-get-mail-command "mbsync -a"
mu4e-maildir "~/.cache/mail"
mu4e-compose-signature
(concat "Chris Hayward\n"
"https://chrishayward.xyz\n"))
;; Ensure plain text scales for all devices.
(setq mu4e-compose-format-flowed t)
;; GPG signing key for outbound mail.
(setq mml-secure-openpgp-signers '("37AB1CB72B741E478CA026D43025DCBD46F81C0F"))
(add-hook 'message-send-hook 'mml-secure-message-sign-pgpmime) (add-hook 'message-send-hook 'mml-secure-message-sign-pgpmime)
(setq message-send-mail-function 'smtpmail-send-it)
;; Configure mail account(s).
(setq mu4e-contexts (setq mu4e-contexts
(list (list
;; Main ;; Main
@ -124,11 +115,9 @@
(smtpmail-stream-type . starttls)))))) (smtpmail-stream-type . starttls))))))
(use-package mu4e-alert (use-package mu4e-alert
:custom
(mu4e-alert-set-default-style 'libnotify)
:config
(mu4e-alert-enable-notifications)
(mu4e-alert-enable-mode-line-display))
:custom (mu4e-alert-set-default-style 'libnotify)
:config (mu4e-alert-enable-notifications)
(mu4e-alert-enable-mode-line-display))
(dotfiles/leader (dotfiles/leader
"m" '(mu4e :which-key "Mail")) "m" '(mu4e :which-key "Mail"))
@ -145,8 +134,7 @@
"a" '(org-agenda :which-key "Agenda")) "a" '(org-agenda :which-key "Agenda"))
(use-package gif-screencast (use-package gif-screencast
:custom
(gif-screencast-output-directory (concat dotfiles/home "docs/images/")))
:custom (gif-screencast-output-directory (concat dotfiles/home "docs/images/")))
(dotfiles/leader (dotfiles/leader
"s" '(:ignore t :which-key "Screencast") "s" '(:ignore t :which-key "Screencast")

Loading…
Cancel
Save