From f6a1ec5f84ed246205c55d55092b2140a27f245b Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Sun, 12 Feb 2023 14:56:00 -0800 Subject: emacs: auto-load config files --- .emacs.local.d/config/rul-config-mail.el | 15 +++++++++++++++ .emacs.local.d/config/rul-config-org.el | 19 +++++++++++++++++++ .emacs.local.d/config/rul-config-projectile.el | 2 ++ 3 files changed, 36 insertions(+) create mode 100644 .emacs.local.d/config/rul-config-mail.el create mode 100644 .emacs.local.d/config/rul-config-org.el create mode 100644 .emacs.local.d/config/rul-config-projectile.el (limited to '.emacs.local.d/config') diff --git a/.emacs.local.d/config/rul-config-mail.el b/.emacs.local.d/config/rul-config-mail.el new file mode 100644 index 0000000..143bbc3 --- /dev/null +++ b/.emacs.local.d/config/rul-config-mail.el @@ -0,0 +1,15 @@ +;; Mutt support. +(setq auto-mode-alist (append '((".*tmp/mutt.*" . message-mode)) auto-mode-alist)) +(setq auto-mode-alist (append '((".*tmp/neomutt.*" . message-mode)) auto-mode-alist)) + +;; Hook up `mutt:...` style URLs +(use-package ol-notmuch :ensure t) +(org-add-link-type "message" 'org-notmuch-open) + +(setq send-mail-function 'sendmail-send-it + sendmail-program "/usr/bin/msmtp" + mail-specify-envelope-from t + message-sendmail-envelope-from 'header + mail-envelope-from 'header) + +(provide 'rul-config-mail) diff --git a/.emacs.local.d/config/rul-config-org.el b/.emacs.local.d/config/rul-config-org.el new file mode 100644 index 0000000..020efa4 --- /dev/null +++ b/.emacs.local.d/config/rul-config-org.el @@ -0,0 +1,19 @@ +(setq + my-org-agenda-files '("~/org/") + my-org-agenda-custom-commands + '(("x" agenda) + ("y" agenda*) + ("w" todo "WAITING") + ("W" todo-tree "WAITING") + ) + my-org-journal-file-type 'yearly + my-org-journal-dir "~/org/journal/" + my-org-journal-file-format "%Y.org" + my-org-journal-time-prefix "* " + my-org-journal-time-format "" + my-org-refile-path "~/refile.org" + my-org-roam-directory "~/org/roam/" + ) + +(provide 'rul-config-org) + diff --git a/.emacs.local.d/config/rul-config-projectile.el b/.emacs.local.d/config/rul-config-projectile.el new file mode 100644 index 0000000..3922c8f --- /dev/null +++ b/.emacs.local.d/config/rul-config-projectile.el @@ -0,0 +1,2 @@ +(setq my-projectile-project-search-path '("~/src/")) +(provide 'rul-config-projectile) -- cgit v1.2.3