* cosmetics
This commit is contained in:
@ -186,7 +186,7 @@ and images in a multipart/related part."
|
|||||||
(goto-char begin)
|
(goto-char begin)
|
||||||
(newline)
|
(newline)
|
||||||
(insert (org~mu4e-mime-multipart
|
(insert (org~mu4e-mime-multipart
|
||||||
body html (mapconcat 'identity html-images "\n"))))))
|
body html (mapconcat 'identity html-images "\n")))))))
|
||||||
|
|
||||||
;; next some functions to make the org/mu4e-compose-mode switch as smooth as
|
;; next some functions to make the org/mu4e-compose-mode switch as smooth as
|
||||||
;; possible.
|
;; possible.
|
||||||
@ -254,15 +254,14 @@ or org-mode (when in the body)."
|
|||||||
((and (<= (point) sepapoint) (eq major-mode 'org-mode))
|
((and (<= (point) sepapoint) (eq major-mode 'org-mode))
|
||||||
(org~mu4e-mime-undecorate-headers)
|
(org~mu4e-mime-undecorate-headers)
|
||||||
(mu4e-compose-mode)
|
(mu4e-compose-mode)
|
||||||
(add-hook 'message-send-hook
|
(add-hook 'message-send-hook 'org~mu4e-mime-convert-to-html-maybe nil t)))
|
||||||
'org~mu4e-mime-convert-to-html-maybe nil t)))
|
|
||||||
;; and add the hook
|
;; and add the hook
|
||||||
(add-hook 'post-command-hook 'org~mu4e-mime-switch-headers-or-body t t))))
|
(add-hook 'post-command-hook 'org~mu4e-mime-switch-headers-or-body t t))))
|
||||||
|
|
||||||
|
|
||||||
(defun org-mu4e-compose-org-mode ()
|
(defun org-mu4e-compose-org-mode ()
|
||||||
"Pseudo-Minor mode for mu4e-compose-mode, to edit the message
|
"Pseudo-Minor mode for mu4e-compose-mode, to edit the message
|
||||||
body using org-mode."
|
body using org-mode."
|
||||||
(interactive)
|
(interactive)
|
||||||
(unless (member major-mode '(org-mode mu4e-compose-mode))
|
(unless (member major-mode '(org-mode mu4e-compose-mode))
|
||||||
(mu4e-error "Need org-mode or mu4e-compose-mode"))
|
(mu4e-error "Need org-mode or mu4e-compose-mode"))
|
||||||
@ -275,7 +274,7 @@ body using org-mode."
|
|||||||
(mu4e-message
|
(mu4e-message
|
||||||
(concat
|
(concat
|
||||||
"org-mu4e-compose-org-mode enabled; "
|
"org-mu4e-compose-org-mode enabled; "
|
||||||
"press M-m before mu4e-compose-mode commands")))
|
"press M-m before issuing message-mode commands")))
|
||||||
(progn ;; otherwise, remove crap
|
(progn ;; otherwise, remove crap
|
||||||
(remove-hook 'post-command-hook 'org~mu4e-mime-switch-headers-or-body t)
|
(remove-hook 'post-command-hook 'org~mu4e-mime-switch-headers-or-body t)
|
||||||
(org~mu4e-mime-undecorate-headers) ;; shut off org-mode stuff
|
(org~mu4e-mime-undecorate-headers) ;; shut off org-mode stuff
|
||||||
|
|||||||
Reference in New Issue
Block a user