dotfiles/emacs/config.el

101 lines
3.1 KiB
EmacsLisp
Raw Normal View History

;;; ~/.doom.d/config.el -*- lexical-binding: t; -*-
;; Set font
(setq doom-font (font-spec :family "FuraCode NF" :size 12))
(pcase (system-name)
("zuk"
2020-05-08 23:46:37 +00:00
;; Wayland support for high HDPI scaling has some issues.
;; Increasing the font size is a working stopgap.
(font-put doom-font :size 15))
)
;; Orgmode
(custom-set-variables '(org-directory "~/org"))
(setq-default org-download-image-dir "~/org/resources/")
2020-05-08 23:46:37 +00:00
;; Enable word wrap
(add-hook 'org-mode-hook #'visual-line-mode)
2020-05-28 17:24:54 +00:00
(setq org-superstar-headline-bullets-list '("" "" "" "" "" "" "" "" ""))
2020-05-08 23:46:37 +00:00
;; allow md export
(eval-after-load "org" '(require 'ox-md nil t))
(setq deft-directory "~/org/")
;; org-journal-file-format
(customize-set-variable 'org-journal-date-format "%A, %d %B %Y")
2020-05-28 17:28:26 +00:00
(setq doom-localleader-key ",")
2019-12-02 04:29:04 +00:00
;; Have projectile automatically check code.
2020-05-09 00:44:17 +00:00
(setq projectile-project-search-path '("~/src/" "~/Code/"))
2019-12-02 04:29:04 +00:00
2020-05-28 17:28:26 +00:00
(set-email-account! "ProtonMail"
'((mu4e-sent-folder . "/Sent")
(mu4e-drafts-folder . "/Drafts")
(mu4e-trash-folder . "/Trash")
(mu4e-refile-folder . "/All Mail")
(mu4e-update-interval . 300)
(mu4e-change-filenames-when-moving . t)
(user-mail-address . "james@jpatrick.io")
(message-send-mail-function . 'smtpmail-send-it)
(smtpmail-auth-credentials . "~/.authinfo.gpg")
(smtpmail-smtp-service . 1025)
(smtpmail-smtp-server . "127.0.0.1")
(smtpmail-smtp-user . "james@jpatrick.io")
)
t)
(setq
message-send-mail-function 'smtpmail-send-it
smtpmail-auth-credentials "~/.authinfo.gpg"
smtpmail-smtp-server "127.0.0.1"
smtpmail-smtp-service 1025)
(let ((bridgecert (expand-file-name "~/.config/mbsync/transient/bridge.crt")))
(when (file-exists-p bridgecert)
(add-to-list 'gnutls-trustfiles bridgecert)
)
)
2020-05-28 17:28:26 +00:00
(defcustom mu4e-bookmarks
'(( :name "Unread messages"
:query "flag:unread AND NOT flag:trashed"
:key ?u)
( :name "Today's messages"
:query "date:today..now"
:key ?t)
( :name "Last 7 days"
:query "date:7d..now"
:hide-unread t
:key ?w)
( :name "Messages with images"
:query "mime:image/*"
:key ?p))
"List of pre-defined queries that are shown on the main screen.
Each of the list elements is a plist with at least:
:name - the name of the query
:query - the query expression
:key - the shortcut key.
Optionally, you add the following:
:hide - if t, bookmark is hdden from the main-view and speedbar.
:hide-unread - do not show the counts of unread/total number
of matches for the query. This can be useful if a bookmark uses
a very slow query. :hide-unread is implied from :hide.
"
:type '(repeat (plist))
:group 'mu4e)
(add-to-list 'mu4e-bookmarks
'( :name "Recent Account Msgs"
:query "maildir:/Folders/subscriptions date 7d..now AND flag:unread"
:key ?s)
)
(add-to-list 'mu4e-bookmarks
'( :name "Unread Personal"
:query "maildir:/INBOX date 7d..now AND flag:unread"
:key ?i)
)