emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/markdown-mode 9b2ce2c98e 1/2: Add an example of live previ


From: ELPA Syncer
Subject: [nongnu] elpa/markdown-mode 9b2ce2c98e 1/2: Add an example of live preview mode customize
Date: Sat, 27 May 2023 02:01:28 -0400 (EDT)

branch: elpa/markdown-mode
commit 9b2ce2c98ef9927eb86de0fa62a7f29b5a9da4cc
Author: Shohei YOSHIDA <syohex@gmail.com>
Commit: Shohei YOSHIDA <syohex@gmail.com>

    Add an example of live preview mode customize
---
 README.md | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/README.md b/README.md
index 3df382ef60..40ba648727 100644
--- a/README.md
+++ b/README.md
@@ -352,6 +352,19 @@ can obtain a list of all keybindings by pressing <kbd>C-c 
C-h</kbd>.
     preview window to appear at the bottom or right, you can
     customize `markdown-split-window-direction`.
 
+      ```lisp
+      ;; Set custom markdown preview function
+      (setq markdown-live-preview-window-function 
#'my-markdown-preview-function)
+
+      ;; always open the preview window at the right
+      (setq markdown-split-window-direction 'right)
+      ;; always open the preview window at the bottom
+      (setq markdown-split-window-direction 'below)
+
+      ;; delete exported HTML file after markdown-live-preview-export is called
+      (setq markdown-live-preview-delete-export 'delete-on-export)
+      ```
+
     To summarize:
 
       - <kbd>C-c C-c m</kbd>: `markdown-command` > `*markdown-output*` buffer.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]