Commit 2e6cb1c3 authored by Arjen Wiersma's avatar Arjen Wiersma

Remove sample code, make mu4e rename mails when moving

parent 4606024c
...@@ -1290,97 +1290,6 @@ A first attempt at a website structure with org-mode. The idea is to build my tu ...@@ -1290,97 +1290,6 @@ A first attempt at a website structure with org-mode. The idea is to build my tu
) )
)) ))
;; Example code
;; (setq org-publish-project-alist
;; `(("all"
;; :components ("blog-content" "blog-static" "org-notes" "blog-rss"))
;; ("blog-content"
;; :base-directory ,org-mode-websrc-directory
;; :base-extension "org"
;; :publishing-directory ,org-mode-publishing-directory
;; :recursive t
;; :publishing-function org-html-publish-to-html
;; :preparation-function org-mode-blog-prepare
;; :export-with-tags nil
;; :headline-levels 4
;; :auto-preamble t
;; :auto-postamble nil
;; :auto-sitemap t
;; :sitemap-title "Howardisms"
;; :section-numbers nil
;; :table-of-contents nil
;; :with-toc nil
;; :with-author nil
;; :with-creator nil
;; :with-tags nil
;; :with-smart-quotes t
;; :html-doctype "html5"
;; :html-html5-fancy t
;; :html-preamble org-mode-blog-preamble
;; :html-postamble org-mode-blog-postamble
;; ;; :html-postamble "<hr><div id='comments'></div>"
;; :html-head "<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
;; <link href='http://fonts.googleapis.com/css?family=Source+Serif+Pro:400,700&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
;; <link href='http://fonts.googleapis.com/css?family=Source+Code+Pro:400,700' rel='stylesheet' type='text/css'>
;; <link rel=\"stylesheet\" href=\"/css/styles.css\" type=\"text/css\"/>\n"
;; :html-head-extra "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js\"></script>
;; <script src=\"/js/magic.js\"></script>
;; <link rel=\"icon\" href=\"/img/dragon.svg\">
;; <link rel=\"shortcut icon\" href=\"/img/dragon-head.png\">
;; <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />"
;; :html-head-include-default-style nil
;; )
;; ("blog-static"
;; :base-directory ,org-mode-websrc-directory
;; :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|svg"
;; :publishing-directory ,org-mode-publishing-directory
;; :recursive t
;; :publishing-function org-publish-attachment
;; )
;; ("blog-rss"
;; :base-directory ,org-mode-websrc-directory
;; :base-extension "org"
;; :rss-image-url "http://howardism.org/img/dragon-head.png"
;; :publishing-directory ,org-mode-publishing-directory
;; :publishing-function (org-rss-publish-to-rss)
;; :html-link-home "http://www.howardism.org/"
;; :html-link-use-abs-url t
;; :with-toc nil
;; :exclude ".*"
;; :include ("index.org"))
;; ("org-notes"
;; :base-directory "~/technical/"
;; :base-extension "org"
;; :publishing-directory ,(concat org-mode-publishing-directory "/notes/")
;; :recursive t
;; :publishing-function org-html-publish-to-html
;; :headline-levels 4 ; Just the default for this project.
;; :auto-preamble t
;; :auto-sitemap t ; Generate sitemap.org automagically...
;; :makeindex t
;; :section-numbers nil
;; :table-of-contents nil
;; :with-author nil
;; :with-creator nil
;; :with-tags nil
;; :style "<link rel=\"stylesheet\" href=\"../css/styles.css\" type=\"text/css\"/> <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js\" type=\"text/javascript\"></script> <link href=\"http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/smoothness/jquery-ui.css\" type=\"text/css\" rel=\"stylesheet\" /> <script src=\"https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js\" type=\"text/javascript\"></script> <script =\"text/javascript\" src=\"js/magic.js\"></script>"
;; )
;; ("org-notes-static"
;; :base-directory "~/technical/"
;; :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
;; :publishing-directory ,(concat org-mode-publishing-directory "/other/")
;; :recursive t
;; :publishing-function org-publish-attachment
;; )))
(defun org-mode-blog-preamble (options) (defun org-mode-blog-preamble (options)
"The function that creates the preamble top section for the blog. "The function that creates the preamble top section for the blog.
OPTIONS contains the property list from the org-mode export." OPTIONS contains the property list from the org-mode export."
...@@ -1426,85 +1335,6 @@ ox-reveal is broken in org 9.2 due to the template mechanism change. ...@@ -1426,85 +1335,6 @@ ox-reveal is broken in org 9.2 due to the template mechanism change.
* Email * Email
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; (require 'mu4e)
;; (defun my-render-html-message ()
;; (let ((dom (libxml-parse-html-region (point-min) (point-max))))
;; (erase-buffer)
;; (shr-insert-document dom)
;; (goto-char (point-min))))
;;
;; (setq mu4e-html2text-command 'my-render-html-message)
;; ;;(setq mu4e-html2text-command "html2text -utf8 -width 72")
;;
;;
;; ;; I want my format=flowed thank you very much
;; ;; mu4e sets up visual-line-mode and also fill (M-q) to do the right thing
;; ;; each paragraph is a single long line; at sending, emacs will add the
;; ;; special line continuation characters.
;; (setq mu4e-compose-format-flowed t)
;;
;; ;; every new email composition gets its own frame! (window)
;; (setq mu4e-compose-in-new-frame t)
;;
;; ;; Show addresses, not just names
;; (setq mu4e-view-show-addresses 't)
;;
;; (setq mu4e-view-show-images t
;; mu4e-show-images t
;; mu4e-view-image-max-width 800)
;;
;; ;; default
;; (setq mu4e-maildir (expand-file-name "~/Maildir"))
;;
;; (setq mu4e-drafts-folder "/Personal/Drafts")
;; (setq mu4e-sent-folder "/Personal/Sent Items")
;; (setq mu4e-trash-folder "/Personal/Trash")
;;
;; ;; don't save message to Sent Messages, GMail/IMAP will take care of this
;; (setq mu4e-sent-messages-behavior 'sent)
;;
;; ;; setup some handy shortcuts
;; (setq mu4e-maildir-shortcuts
;; '(("/Personal/INBOX" . ?i)
;; ("/Personal/Sent Items" . ?s)
;; ("/Personal/Trash" . ?t)))
;;
;; ;; allow for updating mail using 'U' in the main view:
;; (setq mu4e-get-mail-command "offlineimap")
;;
;; ;; something about ourselves
;; ;; I don't use a signature...
;; (setq
;; user-mail-address "arjen@wiersma.org"
;; user-full-name "Arjen Wiersma"
;; ;; message-signature
;; ;; (concat
;; ;; "Foo X. Bar\n"
;; ;; "http://www.example.com\n")
;; )
;;
;; ;; sending mail -- replace USERNAME with your gmail username
;; ;; also, make sure the gnutls command line utils are installed
;; ;; package 'gnutls-bin' in Debian/Ubuntu, 'gnutls' in Archlinux.
;;
;; (require 'smtpmail)
;;
;; (setq message-send-mail-function 'smtpmail-send-it
;; starttls-use-gnutls t
;; smtpmail-starttls-credentials
;; '(("smtp.fastmail.com" 587 nil nil))
;; smtpmail-auth-credentials
;; (expand-file-name "~/.authinfo.gpg")
;; smtpmail-default-smtp-server "smtp.fastmail.com"
;; smtpmail-smtp-server "smtp.fastmail.com"
;; smtpmail-smtp-service 587
;; smtpmail-debug-info t)
#+end_src
#+begin_src emacs-lisp
(setq mu4e-drafts-folder "/Personal/Drafts") (setq mu4e-drafts-folder "/Personal/Drafts")
(setq mu4e-sent-folder "/Personal/Sent Items") (setq mu4e-sent-folder "/Personal/Sent Items")
(setq mu4e-trash-folder "/Personal/Trash") (setq mu4e-trash-folder "/Personal/Trash")
...@@ -1521,6 +1351,9 @@ ox-reveal is broken in org 9.2 due to the template mechanism change. ...@@ -1521,6 +1351,9 @@ ox-reveal is broken in org 9.2 due to the template mechanism change.
(setq mu4e-view-show-images t) (setq mu4e-view-show-images t)
(setq mu4e-html2text-command "w3m -dump -T text/html") (setq mu4e-html2text-command "w3m -dump -T text/html")
;; Prevent duplicate UIDs when moving files around
(setq mu4e-change-filenames-when-moving t)
;; This enables unicode chars to be used for things like flags in the message index screens. ;; This enables unicode chars to be used for things like flags in the message index screens.
;; I've disabled it because the font I am using doesn't support this very well. With this ;; I've disabled it because the font I am using doesn't support this very well. With this
;; disabled, regular ascii characters are used instead. ;; disabled, regular ascii characters are used instead.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment