2020-11-28 16:36:58 +00:00
|
|
|
(defun set-font (font-size bigfont-size)
|
2020-12-02 12:17:08 +00:00
|
|
|
(setq doom-font (font-spec :family "JetBrainsMono Nerd Font" :size font-size))
|
|
|
|
(setq doom-big-font (font-spec :family "JetBrainsMono Nerd Font" :size bigfont-size))
|
|
|
|
(setq doom-variable-pitch-font (font-spec :family "Noto Sans" :size font-size))
|
|
|
|
(setq doom-serif-font (font-spec :family "Noto Serif" :size font-size))
|
2020-11-28 16:36:58 +00:00
|
|
|
(setq doom-unicode-font (font-spec :family "JoyPixels"))
|
|
|
|
)
|
|
|
|
|
2019-12-18 23:18:57 +00:00
|
|
|
(when window-system
|
|
|
|
(if (> (x-display-pixel-width) 2560)
|
2020-11-28 16:36:58 +00:00
|
|
|
(set-font 12 24)
|
|
|
|
(set-font 16 28)))
|
2022-10-09 15:30:41 +00:00
|
|
|
|
2019-12-18 23:18:57 +00:00
|
|
|
(setq doom-theme 'doom-molokai)
|
2022-10-09 15:30:41 +00:00
|
|
|
|
2019-12-11 09:40:11 +00:00
|
|
|
(defun my-fetch-password (&rest params)
|
|
|
|
(require 'auth-source)
|
|
|
|
(let ((match (car (apply #'auth-source-search params))))
|
|
|
|
(if match
|
|
|
|
(let ((secret (plist-get match :secret)))
|
|
|
|
(if (functionp secret)
|
|
|
|
(funcall secret)
|
|
|
|
secret))
|
|
|
|
(error "Password not found for %S" params))))
|
2022-10-09 15:30:41 +00:00
|
|
|
|
2020-07-06 15:06:40 +00:00
|
|
|
(setq display-line-numbers-type `relative)
|
2022-10-09 15:30:41 +00:00
|
|
|
|
2019-12-06 19:10:37 +00:00
|
|
|
(use-package! projectile
|
2020-10-23 07:52:13 +00:00
|
|
|
:defer t
|
2019-12-06 19:10:37 +00:00
|
|
|
:config
|
2020-12-17 16:27:25 +00:00
|
|
|
(setq projectile-project-search-path '("~/devel/personal/" "~/devel/andthensome/" "~/Documents/" "~/dotfiles" "~/private-dotfiles", "~/devel/slip-box/", "~/devel/andthensome/clients/"))) ; Default paths
|
2022-10-09 15:30:41 +00:00
|
|
|
|
2019-12-06 19:10:37 +00:00
|
|
|
(use-package! circe
|
2020-10-23 07:52:13 +00:00
|
|
|
:defer t
|
2019-12-06 19:10:37 +00:00
|
|
|
:config
|
|
|
|
(setq circe-network-options
|
|
|
|
`(
|
|
|
|
("znc-freenode"
|
|
|
|
:host "irc.higherlearning.eu"
|
|
|
|
:port "5000"
|
|
|
|
:tls t ;; Enable tls
|
|
|
|
:user "l0rd/freenode"
|
|
|
|
:server-buffer-name "⇄ Freenode (ZNC)"
|
|
|
|
:pass (lambda (&rest _) (+pass-get-secret "controlpanel/irc.higherlearning.eu")) ;; Get password from pass
|
|
|
|
:channels ("#emacs"))
|
|
|
|
("znc-snoonet"
|
|
|
|
:host "irc.higherlearning.eu"
|
|
|
|
:port "5000"
|
|
|
|
:tls t
|
|
|
|
:user "l0rd/snoonet"
|
|
|
|
:server-buffer-name "⇄ Snoonet (ZNC)"
|
|
|
|
:pass (lambda (&rest _) (+pass-get-secret "controlpanel/irc.higherlearning.eu"))
|
|
|
|
:channels ("#islam"))
|
|
|
|
))
|
|
|
|
)
|
2019-12-10 18:30:15 +00:00
|
|
|
(add-hook 'circe-channel-mode-hook 'enable-lui-autopaste)
|
2020-06-13 16:27:06 +00:00
|
|
|
|
2020-10-09 15:00:56 +00:00
|
|
|
(setq deft-directory "~/Documents/slip-box")
|
2022-10-09 15:30:41 +00:00
|
|
|
|
2019-12-06 19:10:37 +00:00
|
|
|
(after! org
|
|
|
|
(map! :map org-mode-map
|
|
|
|
:n "M-j" #'org-metadown
|
|
|
|
:n "M-k" #'org-metaup)
|
|
|
|
)
|
2022-10-09 15:30:41 +00:00
|
|
|
|
2020-03-18 08:31:55 +00:00
|
|
|
(add-hook 'auto-save-hook 'org-save-all-org-buffers)
|
|
|
|
|
2019-12-07 14:20:18 +00:00
|
|
|
(setq org-directory "~/Documents/org"
|
2020-06-07 18:17:21 +00:00
|
|
|
org-agenda-files (directory-files-recursively "~/Documents/org/" "\.org$")
|
2019-12-06 19:10:37 +00:00
|
|
|
org-log-done 'note
|
2020-12-17 16:27:25 +00:00
|
|
|
org-default-notes-file (expand-file-name "inbox.org" org-directory)
|
2019-12-06 19:10:37 +00:00
|
|
|
org-startup-with-inline-images t)
|
2022-10-09 15:30:41 +00:00
|
|
|
|
2020-10-23 07:52:13 +00:00
|
|
|
(use-package! org-protocol-capture-html :defer t)
|
2022-10-09 15:30:41 +00:00
|
|
|
|
2019-12-12 18:09:43 +00:00
|
|
|
(after! org
|
|
|
|
(add-to-list 'org-capture-templates '("w" "Web site" entry
|
|
|
|
(file+olp "~/Documents/org/web.org" "Web")
|
2019-12-18 23:18:57 +00:00
|
|
|
"* %c\n%U %?%:initial"))
|
2019-12-12 18:09:43 +00:00
|
|
|
)
|
2022-10-09 15:30:41 +00:00
|
|
|
|
2020-10-09 15:00:56 +00:00
|
|
|
(setq org-roam-directory "~/Documents/slip-box")
|
2022-10-09 15:30:41 +00:00
|
|
|
|
2020-07-06 15:06:40 +00:00
|
|
|
(setq org-roam-graph-viewer "~/.local/bin/viewDotfile")
|
2022-10-09 15:30:41 +00:00
|
|
|
|
2020-10-09 15:00:56 +00:00
|
|
|
(setq org-journal-dir "~/Documents/slip-box")
|
2020-06-13 16:27:06 +00:00
|
|
|
(setq org-journal-date-prefix "#+title: ")
|
|
|
|
(setq org-journal-file-format "%Y-%m-%d.org")
|
2020-07-06 15:06:40 +00:00
|
|
|
(setq org-journal-date-format "%A, %d %B %Y")
|
2022-10-09 15:30:41 +00:00
|
|
|
|
2020-07-06 15:06:40 +00:00
|
|
|
(setq org-publish-project-alist
|
|
|
|
'(("wiki"
|
2020-10-09 15:00:56 +00:00
|
|
|
:base-directory "~/Documents/slip-box/"
|
2020-07-06 15:06:40 +00:00
|
|
|
:publishing-directory "~/devel/personal/Ryankes.eu/wiki/content/"
|
|
|
|
:publishing-function org-pandoc-export-to-markdown_mmd
|
|
|
|
:select-tags ("export-blog")
|
|
|
|
)))
|
2022-10-09 15:30:41 +00:00
|
|
|
|
2019-12-10 18:30:15 +00:00
|
|
|
(use-package! mu4e
|
2020-10-23 07:52:13 +00:00
|
|
|
:defer t
|
2019-12-10 18:30:15 +00:00
|
|
|
:config
|
2019-12-11 08:32:30 +00:00
|
|
|
(setq sendmail-program "/usr/bin/msmtp"
|
|
|
|
send-mail-function
|
|
|
|
'smtpmail-send-it
|
|
|
|
message-sendmail-f-is-evil
|
|
|
|
t
|
|
|
|
message-sendmail-extra-arguments
|
|
|
|
'("--read-envelope-from")
|
|
|
|
message-send-mail-function
|
|
|
|
'message-send-mail-with-sendmail)
|
|
|
|
(setq mu4e-maildirs-extension-custom-list '("/ryankes/INBOX" "/ryankes/Sent" "/ryankes/Drafts"
|
|
|
|
"/ryankes/Archive" "/ryankes/Archive.quicknet"
|
|
|
|
"/gmail/INBOX" "/gmail/Sent" "/gmail/Drafts"
|
|
|
|
"/gmail/Archive" "/andthensome/INBOX" "/andthensome/Sent"
|
|
|
|
"/andthensome/Drafts" "/andthensome/Archive")))
|
2019-12-10 18:30:15 +00:00
|
|
|
(setq mu4e-maildir "~/.local/share/mail"
|
|
|
|
mu4e-maildir-shortcuts
|
|
|
|
'(("/ryankes/INBOX" . ?r)
|
|
|
|
("/gmail/INBOX" . ?g)
|
|
|
|
("/andthensome/INBOX" . ?a))
|
2020-02-28 17:49:24 +00:00
|
|
|
mu4e-mu-home
|
|
|
|
"~/.cache/mu"
|
2019-12-10 18:30:15 +00:00
|
|
|
mu4e-update-interval
|
|
|
|
300
|
|
|
|
mu4e-get-mail-command
|
|
|
|
"mailsync"
|
|
|
|
mu4e-enable-mode-line
|
|
|
|
t
|
|
|
|
mu4e-use-fancy-chars
|
|
|
|
t
|
|
|
|
mu4e-context-policy
|
|
|
|
'pick-first
|
|
|
|
mu4e-attachment-dir
|
|
|
|
"~/Downloads/")
|
|
|
|
(after! mu4e
|
2019-12-11 08:32:16 +00:00
|
|
|
;; load package to be able to capture emails for GTD
|
|
|
|
(require 'org-mu4e)
|
|
|
|
|
2019-12-10 18:30:15 +00:00
|
|
|
(setq mu4e-contexts
|
|
|
|
`(,(make-mu4e-context :name "Ryankes"
|
|
|
|
:match-func (lambda (msg)
|
|
|
|
(when msg
|
|
|
|
(string-match-p "^/ryankes"
|
|
|
|
(mu4e-message-field msg :maildir)))):vars'((user-mail-address . "ryan@ryankes.eu")
|
|
|
|
(user-full-name . "Ryan")
|
|
|
|
(mu4e-sent-folder . "/ryankes/Sent")
|
|
|
|
(mu4e-drafts-folder . "/ryankes/Drafts")
|
|
|
|
(mu4e-trash-folder . "/ryankes/Trash")
|
|
|
|
(mu4e-refile-folder . "/ryankes/Archive")))
|
|
|
|
,(make-mu4e-context :name "Gmail"
|
|
|
|
:match-func (lambda (msg)
|
|
|
|
(when msg
|
|
|
|
(string-match-p "^/gmail"
|
|
|
|
(mu4e-message-field msg :maildir)))):vars'((user-mail-address . "alrayyes@gmail.com")
|
|
|
|
(user-full-name . "Ryan")
|
|
|
|
(mu4e-sent-folder . "/gmail/Sent")
|
|
|
|
(mu4e-drafts-folder . "/gmail/Drafts")
|
|
|
|
(mu4e-trash-folder . "/gmail/Trash")
|
2019-12-11 08:58:07 +00:00
|
|
|
(mu4e-refile-folder . "/gmail/Archive")))
|
2019-12-10 18:30:15 +00:00
|
|
|
,(make-mu4e-context :name "Andthensome"
|
|
|
|
:match-func (lambda (msg)
|
|
|
|
(when msg
|
|
|
|
(string-match-p "^/andthensome"
|
|
|
|
(mu4e-message-field msg :maildir)))):vars'((user-mail-address . "ryan@andthensome.nl")
|
|
|
|
(user-full-name . "Ryan Kes")
|
|
|
|
(mu4e-sent-folder . "/andthensome/Sent")
|
|
|
|
(mu4e-drafts-folder . "/andthensome/Drafts")
|
|
|
|
(mu4e-trash-folder . "/andthensome/Trash")
|
2019-12-11 08:58:07 +00:00
|
|
|
(mu4e-refile-folder . "/andthensome/Archive"))))))
|
2019-12-10 18:30:15 +00:00
|
|
|
(add-hook 'mu4e-view-mode-hook 'visual-line-mode)
|
2022-10-09 15:30:41 +00:00
|
|
|
|
2019-12-11 16:50:40 +00:00
|
|
|
(use-package! elfeed
|
2020-10-23 07:52:13 +00:00
|
|
|
:defer t
|
2019-12-11 16:50:40 +00:00
|
|
|
:config
|
|
|
|
(setq elfeed-use-curl t)
|
|
|
|
(elfeed-set-timeout 36000)
|
|
|
|
(setq elfeed-protocol-ttrss-maxsize 200) ; bigger than 200 is invalid
|
|
|
|
(elfeed-protocol-enable)
|
|
|
|
(defadvice elfeed (after configure-elfeed-feeds activate)
|
|
|
|
"Make elfeed-org autotags rules works with elfeed-protocol."
|
|
|
|
(defvar elfeed-protocol-tags)
|
|
|
|
(setq elfeed-protocol-tags elfeed-feeds)
|
|
|
|
(setq elfeed-feeds (list
|
|
|
|
(list "ttrss+https://alrayyes@rss.higherlearning.eu"
|
|
|
|
:password (password-store-get "emacs/rss")
|
|
|
|
:autotags elfeed-protocol-tags)))))
|
2022-10-09 15:30:41 +00:00
|
|
|
|
2019-12-11 16:50:40 +00:00
|
|
|
(use-package! elfeed-org
|
2020-10-23 07:52:13 +00:00
|
|
|
:defer t
|
2019-12-11 16:50:40 +00:00
|
|
|
:config
|
|
|
|
(setq rmh-elfeed-org-files '("~/Documents/org/elfeed.org"))
|
|
|
|
)
|
2022-10-09 15:30:41 +00:00
|
|
|
|
2019-12-11 17:52:19 +00:00
|
|
|
(use-package! elfeed-goodies
|
2020-10-23 07:52:13 +00:00
|
|
|
:defer t
|
2019-12-11 17:52:19 +00:00
|
|
|
:config
|
|
|
|
(elfeed-goodies/setup))
|
2022-10-09 15:30:41 +00:00
|
|
|
|
2020-03-24 07:37:38 +00:00
|
|
|
(with-eval-after-load "ispell"
|
|
|
|
(setq ispell-program-name "hunspell")
|
|
|
|
;; ispell-set-spellchecker-params has to be called
|
|
|
|
;; before ispell-hunspell-add-multi-dic will work
|
|
|
|
(ispell-set-spellchecker-params)
|
|
|
|
(ispell-hunspell-add-multi-dic "en_GB,nl_NL,en_US")
|
|
|
|
(setq ispell-dictionary "en_GB,nl_NL,en_US"))
|
2022-10-09 15:30:41 +00:00
|
|
|
|
|
|
|
(add-to-list 'auto-mode-alist '("\\.mdx\\'" . markdown-mode))
|