2.3 KiB
2.3 KiB
Doom Emacs Markdown Cheatsheet
📝 Getting Started
- Open any
.mdfile - Doom automatically enablesmarkdown-mode - You'll get syntax highlighting, proper indentation, and markdown-specific features
⌨️ Key Markdown Commands (with Evil/Vim bindings)
Formatting Text:
SPC m b- Bold textSPC m i- Italic textSPC m c-Inline codeSPC m C- Code blockSPC m s-Strikethrough
Headers:
SPC m h- Insert header (prompts for level 1-6)SPC m H- Insert header with underline style
Lists:
SPC m l- Insert unordered list itemSPC m L- Insert ordered list item
Links & Images:
SPC m l l- Insert linkSPC m l i- Insert imageSPC m l u- Insert URL
Navigation:
]]- Next header[[- Previous headerSPC m o- Open outline/table of contents
👁️ Live Preview
SPC m p- Preview in browserSPC m P- Export to HTML
📊 Tables
SPC m t- Table commandsSPC m t t- Insert tableTAB- Navigate between cellsS-TAB- Navigate backward between cells
🎯 Useful Evil Bindings in Markdown
TAB- Cycle folding of headersS-TAB- Cycle folding globallyRET- Follow linksM-RET- Insert new list item
🧪 Test Examples
Sample Formatting
This is bold text and this is italic text.
Here's some inline code and a code block:
# Code block example
echo "Hello from markdown!"
Sample List
- Checkbox item 1
- Completed checkbox
- Regular bullet point
Sample Table
| Feature | Shortcut | Description |
|---|---|---|
| Bold | SPC m b | Make text bold |
| Italic | SPC m i | Make text italic |
| Preview | SPC m p | Preview in browser |
🚀 Pro Tips
- Use
SPC m oto get an outline view for navigation TABon headers to fold/unfold sectionsRETon links to follow them- Use
SPC m pto preview your markdown in a browser - Create checklists with
- [ ]syntax
📚 Quick Reference
- All markdown commands start with
SPC m - Use
SPC m ?orC-h mto see all available commands - Navigation between headers:
]](next) and[[(previous) - Toggle folding:
TAB(local) andS-TAB(global)