This repository was archived by the owner on Jan 21, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path+markdown.el
More file actions
39 lines (33 loc) · 1.5 KB
/
+markdown.el
File metadata and controls
39 lines (33 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
;;; $DOOMDIR/+markdown.el -*- lexical-binding: t; -*-
;; ---------------------------------------
;; Markdown
;;
;; Doom Markdown configuration
;; ~/.config/emacs-doom/modules/lang/markdown/config.el
;; ---------------------------------------
;; Markdown key bindings
;; Changes
;; - move toggle prefix from `t' to `T'
;; - add table prefix `t'
(map! :map markdown-mode-map
:localleader
(:prefix ("t" . nil))
(:prefix ("t" . "Table")
:desc "Header" "h" #'markdown-table-hline-at-point-p
:desc "Sort" "s" #'markdown-table-sort-lines
:desc "Region to table" "r" #'markdown-table-convert-region
:desc "Table insert" "t" #'markdown-insert-table
(:prefix ("d" . "Delete")
:desc "column" "c" #'markdown-table-delete-column
:desc "row" "r" #'markdown-table-delete-row)
(:prefix ("i" . "Insert")
:desc "Column" "c" #'markdown-table-insert-column
:desc "Row" "r" #'markdown-table-insert-row))
(:prefix ("T" . "toggle")
:desc "Inline LaTeX" "e" #'markdown-toggle-math
:desc "Code highlights" "f" #'markdown-toggle-fontify-code-blocks-natively
:desc "Inline images" "i" #'markdown-toggle-inline-images
:desc "URL hiding" "l" #'markdown-toggle-url-hiding
:desc "Markup hiding" "m" #'markdown-toggle-markup-hiding
:desc "Wiki links" "w" #'markdown-toggle-wiki-links
:desc "GFM checkbox" "x" #'markdown-toggle-gfm-checkbox))