diff --git a/email-style.css b/email-style.css deleted file mode 100644 index 0df8f0f..0000000 --- a/email-style.css +++ /dev/null @@ -1,10 +0,0 @@ -table { border-collapse:collapse; } -caption.t-above { caption-side: top; } -caption.t-bottom { caption-side: bottom; } -td, th { vertical-align:top; } -th.org-right { text-align: center; } -th.org-left { text-align: center; } -th.org-center { text-align: center; } -td.org-right { text-align: right; } -td.org-left { text-align: left; } -td.org-center { text-align: center; } diff --git a/init.org b/init.org index 77f6588..580191e 100644 --- a/init.org +++ b/init.org @@ -1153,34 +1153,6 @@ #+end_src -** Email with org mode - - The package org-msg allows me to compose emails with Org mode. That means I - easily can add headings, tables, source code, etc. It is really neat. - - #+begin_src emacs-lisp - - ;; Org mode to send and reply to email in HTML - (use-package org-msg - :after (org mu4e) - :config - (add-to-list 'mu4e-compose-pre-hook 'org-msg-mode) - (setq org-msg-enforce-css (concat user-emacs-directory "email-style.css") - org-msg-options "html-postamble:nil toc:nil num:nil author:nil email:nil" - org-msg-default-alternatives '((new . (text html)) - (reply-to-html . (text html)) - (reply-to-text . (text))) - org-msg-signature " - - ,#+begin_signature - ,#+begin_export html - - - Lars - ,#+end_export - ,#+end_signature\n")) - - #+end_src - ** GitHub flavored markdown I guess I have to include my (semi-abandoned) mode [[https://github.com/larstvei/ox-gfm][ox-gfm]] for exporting org @@ -1230,46 +1202,6 @@ #+end_src -* Email - - I've used Emacs for email in the past, where I've always had the need for a - more standard email client in addition. I'm going to give it another go. - - I use [[http://www.djcbsoftware.nl/code/mu/mu4e.html][mu4e]] (which is a part of [[http://www.djcbsoftware.nl/code/mu/][mu]]) along with [[https://isync.sourceforge.io/][mbsync]]. - - #+begin_src emacs-lisp - (use-package mu4e - :defer t - :if (and (file-exists-p "~/Maildir") - (executable-find "mbsync") - (executable-find "msmtp") - (executable-find "mu")) - :bind (:map custom-bindings-map ("C-x m" . mu4e)) - :config - (setq - mail-user-agent 'mu4e-user-agent - user-full-name "Lars Tveito" ; Your full name - user-mail-address "larstvei@ifi.uio.no" ; And email-address - - sendmail-program (executable-find "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 - message-kill-buffer-on-exit t - - mu4e-get-mail-command (concat (executable-find "mbsync") " -a") - mu4e-change-filenames-when-moving t - mu4e-maildir-shortcuts '(("/Inbox" . ?i) ("/Sent Items" . ?s)) - - mu4e-sent-folder "/Sent Items" - mu4e-trash-folder "/Deleted Items" - mu4e-trash-folder "/Drafts" - - mu4e-use-fancy-chars t)) - #+end_src - * LLM The ChatGPT client [[https://github.com/karthink/gptel][gptel]] needs an API key from the OpenAI API. This key can