Merge pull request #1917 from darth10/feature-grip-mode
lang/markdown: add +grip feature (live markdown previews)
This commit is contained in:
commit
55a6abbc91
4 changed files with 12 additions and 1 deletions
|
@ -118,10 +118,12 @@ installed through your OS's package manager:
|
||||||
|
|
||||||
* Features
|
* Features
|
||||||
** Markdown preview
|
** Markdown preview
|
||||||
~markdown-preview~ is bound to =SPC m b= (for Evil users) and =C-c l b= (for
|
~markdown-preview~ is bound to =SPC m p= (for Evil users) and =C-c l p= (for
|
||||||
non-evil users). This will open a preview of your compiled markdown document in
|
non-evil users). This will open a preview of your compiled markdown document in
|
||||||
your browser.
|
your browser.
|
||||||
|
|
||||||
|
Alternatively, you can use ~grip-mode~ through =+grip=.
|
||||||
|
|
||||||
* Configuration
|
* Configuration
|
||||||
** Changing how markdown is compiled
|
** Changing how markdown is compiled
|
||||||
When ~markdown-preview~ is invoked (=SPC m b= or =C-c l b=), it consults
|
When ~markdown-preview~ is invoked (=SPC m b= or =C-c l b=), it consults
|
||||||
|
|
|
@ -69,6 +69,8 @@ capture, the end position, and the output buffer.")
|
||||||
"o" #'markdown-open
|
"o" #'markdown-open
|
||||||
"p" #'markdown-preview
|
"p" #'markdown-preview
|
||||||
"e" #'markdown-export
|
"e" #'markdown-export
|
||||||
|
(:when (featurep! +grip)
|
||||||
|
"p" #'grip-mode)
|
||||||
(:prefix ("i" . "insert")
|
(:prefix ("i" . "insert")
|
||||||
"t" #'markdown-toc-generate-toc
|
"t" #'markdown-toc-generate-toc
|
||||||
"i" #'markdown-insert-image
|
"i" #'markdown-insert-image
|
||||||
|
|
|
@ -16,3 +16,7 @@
|
||||||
(unless (executable-find cmd)
|
(unless (executable-find cmd)
|
||||||
(warn! "Couldn't find %S. markdown-preview command won't work"
|
(warn! "Couldn't find %S. markdown-preview command won't work"
|
||||||
cmd))))))
|
cmd))))))
|
||||||
|
|
||||||
|
(when (featurep! +grip)
|
||||||
|
(unless (executable-find "grip")
|
||||||
|
(warn! "Couldn't find grip. grip-mode will not work")))
|
||||||
|
|
|
@ -4,3 +4,6 @@
|
||||||
(package! markdown-mode)
|
(package! markdown-mode)
|
||||||
(package! markdown-toc)
|
(package! markdown-toc)
|
||||||
(package! edit-indirect)
|
(package! edit-indirect)
|
||||||
|
|
||||||
|
(when (featurep! +grip)
|
||||||
|
(package! grip-mode))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue