summaryrefslogtreecommitdiff
path: root/cpan/dist/HTML-FromText/ext/emacs-macros.el
blob: a456adf21df94ba705d05c1ceacb0e230cc8a432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;; blockquotes
(global-set-key (kbd "C-c h")
                (lambda () (interactive)
                  (shell-command-on-region
                   (region-beginning) (region-end)
                   "text2html --paras --urls --blockquotes --email --bullets --numbers --tables --bold --underline"
                   (current-buffer) t)))

;; blockparas
(global-set-key (kbd "C-c j")
                (lambda () (interactive)
                  (shell-command-on-region
                   (region-beginning) (region-end)
                   "text2html --paras --urls --blockparas --email --bullets --numbers --tables --bold --underline"
                   (current-buffer) t)))

;; blockcode
(global-set-key (kbd "C-c k")
                (lambda () (interactive)
                  (shell-command-on-region
                   (region-beginning) (region-end)
                   "text2html --paras --urls --blockcode --email --bullets --numbers --tables --bold --underline"
                   (current-buffer) t)))