[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-mime fc3ac72c3a: doc
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-mime fc3ac72c3a: doc |
Date: |
Fri, 21 Jan 2022 03:58:22 -0500 (EST) |
branch: elpa/org-mime
commit fc3ac72c3a5912f8ec1b64ee67997002b59bd931
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>
doc
---
README.org | 6 +++---
org-mime.el | 11 +++++------
2 files changed, 8 insertions(+), 9 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..06f4e2173d 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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/org-mime fc3ac72c3a: doc,
ELPA Syncer <=