Githubの README 書くん org-mode つこぉとったんじゃけど marakdown にしようと思ぉて。 はてなブログも markdown で書きよるけぇね。
今まで気にもせんかったんじゃけど markdown-mode があったけぇ、それを使おてみるわいね。
目次
- インストール
- キーバインド
- カスタマイズ
- Extensions
- GitHub香る Markdown
- まとめ
インストール
emacs 24 つこぉとるけぇ package.el でインストールできるんじゃけぇ、はぁぶち楽いね。
これでパッケージの一覧を起動して。
M-x package-list-packages
これを I で選択して X でインストール。
I markdown-mode 2.0 installed Emacs Major mode for Markdown-formatted text files
問題なく完了。
キーバインド
キーバーインドはこんだけ。 使いながら覚えようっと。
機能 | キーバインド |
---|---|
Hyperlinks | C-c C-a |
Images | C-c C-i |
Styles | C-c C-s |
Headings | C-c C-t |
Horizontal Rules | C-c - |
Markdown and Maintenance Commands | C-c C-c |
Following Links | C-c C-o |
Jumping | C-c C-j |
Promotion and Demotion | C-c C— and C-c C-= |
Completion | C-c C-] |
Editing Lists | M-RET , M-UP , M-DOWN , M-LEFT , and M-RIGHT |
Shifting the Region | C-c < and C-c > |
Killing Elements | C-c C-k |
Outline Navigation | C-c C-n , C-c C-p , C-c C-f , C-c C-b , and C-c C-u |
Movement by Paragraph or Block | M-{ and M-} |
Movement by Defun | C-M-a , C-M-e , and C-M-h |
カスタマイズ
M-x customize-mode で設定画面が出てくるみたいね。
とりあえずマニュアルそのままコピペで。。。。そのうちそのうち。。。
item | description | default |
---|---|---|
markdown-command | the command used to run Markdown | markdown |
markdown-command-needs-filename | set to t if markdown-command does not accept standard input | nil |
markdown-open-command | the command used for calling a standalone Markdown previewer which is capable of opening Markdown source files directly | nil |
markdown-hr-strings | list of strings to use when inserting horizontal rules. | |
markdown-bold-underscore | set to a non-nil value to use two underscores for bold instead of two asterisks | nil |
markdown-italic-underscore | set to a non-nil value to use underscores for italic instead of asterisks | nil |
markdown-indent-function | the function to use for automatic indentation | markdown-indent-line |
markdown-indent-on-enter | set to a non-nil value to automatically indent new lines when the enter key is pressed | t |
markdown-wiki-link-alias-first | 文章長いわ。 | |
markdown-uri-types | a list of protocol schemes (e.g., “http”) for URIs that markdown-mode should highlight. | |
markdown-enable-math | syntax highlighting for LaTeX fragments | nil |
markdown-css-path | CSS file to link to in XHTML output | "" |
markdown-content-type | when set to a nonempty string, an http-equiv attribute will be included in the XHTML block | "" |
markdown-coding-system | used for specifying the character set identifier in the http-equiv attribute when included | nil |
markdown-xhtml-header-content | additional content to include in the XHTML block | "" |
markdown-xhtml-standalone-regexp | 文章長いわ。 | |
markdown-link-space-sub-char | a character to replace spaces when mapping wiki links to filenames | "_" |
markdown-reference-location | where to insert reference definitions | header |
markdown-footnote-location | where to insert footnote text | end |
色見をカスタマイズしたい場合は M-x customize-group RET markdown-faces
じゃね。
Extensions
今回はパスして、今度々。
GitHub香る Markdown
gfm-mode
で GFM モードになるみたい。
これも今度にしよ。
まとめ
今日は使い始めるためにざっくりまとめたんで、次の機会に細かいこと書いていきます。
ほいじゃ。また。
Markdown-mode入門
- はじまりとは
- キーバインドの巻 (執筆中)
- カスタマイズの巻 (執筆中)
- Extensionsの (執筆中)
- GitHub香る Markdownの巻 (執筆中)