Skip to content

Commit

Permalink
mostly whitespace changes, minor simplification.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkitchin committed Oct 19, 2018
1 parent a68d402 commit e55e067
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions scimax-email.el
Expand Up @@ -35,25 +35,21 @@
(bibtex-end-of-entry)
(setq p2 (point)))
(add-to-list 'bib-entries (buffer-substring-no-properties p1 p2))))))))

(compose-mail)
(message-goto-body)
(insert content)
(insert "\n\n% Bibtex Entries:\n\n")
(loop for bib-entry in bib-entries
do
do
(insert bib-entry))
(message-goto-to)))

;;;###autoload
(defun email-buffer ()
"Send buffer as the body of an email."
(interactive)
(let ((content (buffer-string)))
(compose-mail)
(message-goto-body)
(insert content)
(message-goto-to)))
(email-region (point-min) (point-max)))


(defvar *email-heading-point* nil
Expand Down Expand Up @@ -214,7 +210,7 @@ overwritten on subsequent sends."
(message-goto-body)
(insert (pop bibtex-entry-kill-ring))
(message-goto-subject)
(insert (concat "Bibtex entry: " key))
(insert (concat "Bibtex entry: " key))
(when (file-exists-p pdf)
(mml-attach-file pdf))
(message-goto-to))))
Expand Down Expand Up @@ -274,8 +270,8 @@ Example usage:
(let ((this-id nil))
(save-excursion
(unless (and (outline-next-heading)
(string= "Messages" (nth 4 (org-heading-components))))
(org-insert-subheading nil)
(string= "Messages" (nth 4 (org-heading-components))))
(org-insert-subheading nil)
(insert "Messages"))
(setq this-id (org-id-get-create)))

Expand Down

0 comments on commit e55e067

Please sign in to comment.