https://github.com/jrblevin/markdown-mode
20161222.1416
stable 2.1
Emacs Markdown Mode
Installation
未测试
Direct Download
wget http://jblevins.org/projects/markdown-mode/markdown-mode.el -P ~/.emacs.d/
添加到.emacs
(autoload 'markdown-mode "markdown-mode"
"Major mode for editing Markdown files" t)
(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
(autoload 'gfm-mode "markdown-mode"
"Major mode for editing GitHub Flavored Markdown files" t)
(add-to-list 'auto-mode-alist '("README\\.md\\'" . gfm-mode))
Development Version
暂无
Packaged Installation
暂无
Dependencies
暂无
Usage
Hyperlinks
C-c C-a l
[百度](http://www.baidu.com)
C-c C-a L
[text][label]
[label]: http://www.baidu.com "title"
C-c C-a u
<http://www.baidu.com>
Images
C-c C-i i
![bd](https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/bd_logo1_31bdc765.png)
Styles
C-c C-s e
*emphasis*
C-c C-s s
**strong**
C-c C-s c
`code`
C-c C-s k
测试失败,未定义
C-c C-s b
> blockquote
C-c C-s C-b
选中文本块
cccscb
输出
> blockquote
C-c C-s p
code blocks
C-c C-s C-p
选中文本块
cccscp
code blocks
Headings
C-c C-t h
## head ##
C-c C-t H
head
----
C-u C-u
测试失败
C-c C-t 1
# head #
Horizontal Rules
C-c -
-------------------------------------------------------------------------------
Markdown and Maintenance Commands
C-c C-c m: markdown-command > markdown-output buffer.
C-c C-c p: markdown-command > temporary file > browser.
C-c C-c e: markdown-command > basename.html.
C-c C-c v: markdown-command > basename.html > browser.
C-c C-c w: markdown-command > kill ring.
C-c C-c o: markdown-open-command.
C-c C-c l: markdown-live-preview-mode > eww buffer.
Following Links
C-c C-o
<www.baidu.com>
测试失败
Jumping
C-c C-l
#1
##11
111
#2
##22
222
cccl 测试失败
TAB or S-TAB
#1
##11
111
#2
##22
222
<tab><tab><tab>
s<tab>s<tab>s<tab>
Promotion and Demotion
C-c C-- and C-c C-=
#1
##11
111
#2
##22
222
ccc- ccc=
Completion
C-c C-]
#1
##11
111
#2
##22
222
ccc]
# 1 #
##11
111
#2
##22
222
Editing Lists
M-RET, M-UP, M-DOWN, M-LEFT, and M-RIGHT
#1
##11
111
#2
##22
222
cncn
m<ret>
m<up> m<down>
m<right> m<left>
Editing Subtrees
M-S-UP, M-S-DOWN, M-S-LEFT, and M-S-RIGHT
#1
##11
111
#2
##22
222
ms<down> ms<up>
ms<right> ms<left>
Shifting the Region
C-c < and C-c >
#1
##11
111
#2
##22
222
cc> cc>
cc> cc<
二者效果相同
Killing Elements
C-c C-k
#1
##11
111
#2
##22
222
ccck cn
ccck cn
ccck 无法kill,非element
Outline Navigation
C-c C-n, C-c C-p, C-c C-f, C-c C-b, and C-c C-u
#1
##11
111
#2
##22
222
cccn cccp
cccf cccb
cn cn cccu
Movement by Paragraph or Block
M-{ and M-}
参考emacs
Movement by Defun
C-M-a C-M-e
可用cccn、cccp代替
C-M-h
未测试
Customization
未测试
Extensions
未测试
GitHub Flavored Markdown (GFM)
未测试
Acknowledgments
暂无
Bugs
暂无
History
暂无