[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-mime 7c3483b2b0 030/118: sample for advanced setup
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-mime 7c3483b2b0 030/118: sample for advanced setup |
Date: |
Wed, 5 Jan 2022 07:58:44 -0500 (EST) |
branch: elpa/org-mime
commit 7c3483b2b0ac6bc2bcee250f43dbea291bfa45d6
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>
sample for advanced setup
---
README.org | 7 +++++++
org-mime.el | 10 +++++++++-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/README.org b/README.org
index e6bf628694..02f058129a 100644
--- a/README.org
+++ b/README.org
@@ -77,6 +77,13 @@ 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',
+#+begin_src elisp
+(add-hook 'org-mime-html-hook
+ (lambda ()
+ (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.
** Export options
To avoid exporting TOC, you can setup `org-mime-export-options',
diff --git a/org-mime.el b/org-mime.el
index 93bada66f6..ca8d05d149 100644
--- a/org-mime.el
+++ b/org-mime.el
@@ -81,8 +81,16 @@
;; (lambda ()
;; (local-set-key (kbd "C-c M-o") 'org-mime-org-buffer-htmlize)))
;;
-;; In order to embed image into your mail, use below org syntax,
+;; Extra Tips:
+;; 1. In order to embed image into your mail, use below org syntax,
;; [[/full/path/to/your.jpg]]
+;;
+;; 2. It's easy to add your own emphasis symbol. For example, in order to
render
+;; text between "@" in red color, you can use `org-mime-html-hook':
+;; (add-hook 'org-mime-html-hook
+;; (lambda ()
+;; (while (re-search-forward "@\\([^@]*\\)@" nil t)
+;; (replace-match "<span style=\"color:red\">\\1</span>"))))
;;; Code:
(require 'cl-lib)
- [nongnu] elpa/org-mime 3c4f24c8d4 016/118: clean code. github organization created, (continued)
- [nongnu] elpa/org-mime 3c4f24c8d4 016/118: clean code. github organization created, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 2347595278 002/118: emacs24 use org-export-string instead of org-export-string-as, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime a0b82a6c1a 024/118: better export format (not TOC, etc) and bug fix, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 9d32b819f0 025/118: updated README, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime caa1f19d4b 009/118: Fix getting the subect, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 0311662889 017/118: Correct 'interactive' position, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime ffbf3e3e47 010/118: Support mime encoding current subtree, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime c49eb00fc6 021/118: can create email from org subtree, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime e554d8821d 020/118: Merge pull request #1 from syohex/fix-package, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 91d8f48775 023/118: can set org export options, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 7c3483b2b0 030/118: sample for advanced setup,
ELPA Syncer <=
- [nongnu] elpa/org-mime e3329c7c4d 032/118: README, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 0a0aa9b110 034/118: README, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime ad30f199cb 036/118: provide org-mime-find-html-start callback, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 5f253f541c 037/118: only use export header when creating html, keep out of email, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime c6e2b95664 047/118: clean code, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 64a3f56651 041/118: (setq org-html-with-latex nil) sometimes useful #16, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 10098b001c 049/118: Fix file attachments and equations and enhance emails from org-files, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 1e792ef061 059/118: Merge pull request #28 from titaniumbones/fix-klipse-error, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime f610861858 063/118: htmlize current subtree, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 9506727ca7 072/118: README, ELPA Syncer, 2022/01/05