emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/org-mime c4268dbca5 1/5: doc


From: ELPA Syncer
Subject: [nongnu] elpa/org-mime c4268dbca5 1/5: doc
Date: Sat, 5 Feb 2022 06:58:36 -0500 (EST)

branch: elpa/org-mime
commit c4268dbca5a48fe47a2761ecd0c28a6db5f5abee
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>

    doc
---
 README.org  |  6 +++---
 org-mime.el | 13 ++++++-------
 2 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/README.org b/README.org
index 6763f73a6b..8cbff06499 100644
--- a/README.org
+++ b/README.org
@@ -90,16 +90,16 @@ For those who use color themes with Dark backgrounds it is 
useful to set a dark
              "blockquote" "border-left: 2px solid gray; padding-left: 4px;")))
 #+end_src
 
-Render text between "@" in red color, you can use =org-mime-html-hook=,
+Below code renders text between "#" in red color,
 #+begin_src elisp
 (add-hook 'org-mime-html-hook
           (lambda ()
-            (while (re-search-forward "@\\([^@]*\\)@" nil t)
+            (while (re-search-forward "#\\([^#]*\\)#" nil t)
               (replace-match "<span style=\"color:red\">\\1</span>"))))
 #+end_src
 For other customization options see the org-mime customization group.
 ** Beautify quoted mail when replying
-It already works out of box. Currently it emulate Gmail's style. You can go 
back the old Gnus style by =(setq org-mime-beautify-quoted-mail nil)=.
+It already works out of box. Currently it emulates Gmail's style. You can go 
back the old style by =(setq org-mime-beautify-quoted-mail nil)=.
 ** Export options
 To avoid exporting TOC, you can setup =org-mime-export-options= which 
overrides Org default settings (but still inferior to file-local settings),
 #+begin_src elisp
diff --git a/org-mime.el b/org-mime.el
index 3cc6716e69..bd9a24ab3a 100644
--- a/org-mime.el
+++ b/org-mime.el
@@ -93,17 +93,16 @@
 ;; 1. In order to embed images into your mail, use the syntax below,
 ;; [[/full/path/to/your.jpg]]
 ;;
-;; 2. It's easy to add your own emphasis markup.  For example, to render text
-;; between "@" in a red color, you can add a function to `org-mime-html-hook':
+;; 2. It's easy to define your own emphasis markup.
+;; For example, below code renders text between "#" in red color,:
 ;;
 ;;   (add-hook 'org-mime-html-hook
 ;;             (lambda ()
-;;               (while (re-search-forward "@\\([^@]*\\)@" nil t)
+;;               (while (re-search-forward "#\\([^#]*\\)#" nil t)
 ;;                 (replace-match "<span style=\"color:red\">\\1</span>"))))
 ;;
-;; 3. Now the quoted mail uses a modern style (like Gmail), so mail replies
-;; looks clean and modern. If you prefer the old style, please set
-;; `org-mime-beautify-quoted-mail' to nil.
+;; 3. The quoted mail uses Gmail's style, so mail replies looks clean and 
modern.
+;; If you prefer the old style, please set `org-mime-beautify-quoted-mail' to 
nil.
 ;;
 ;; 4. Please note this program can only embed exported HTML into mail.
 ;;    Org-mode is responsible for rendering HTML.
@@ -217,7 +216,7 @@ buffer holding the text to be exported.")
                                   (line-end-position)))
 
 (defun org-mime-use-ascii-charset ()
-  "Return nil unless org-mime-export-ascii is set to a valid value."
+  "Return nil unless `org-mime-export-ascii' is set to a valid value."
   (car (memq org-mime-export-ascii '(ascii utf-8 latin1))))
 
 (defun org-mime-export-ascii-maybe (text-for-ascii text-for-plain &optional 
opts)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]