Archived
1
0
Fork 0

setup markdown preview mode in code profile

This commit is contained in:
KemoNine 2022-08-25 11:14:22 -04:00
parent d2f3af9076
commit 3f55d01e4a
2 changed files with 37 additions and 23 deletions

View file

@ -21,3 +21,4 @@ fi
# dont forget to pre-compile elisp / install plugins
cat ~/.emacs-profiles.el
echo "run emacs with each profile in '~/.emacs-profiles.el'"
echo "install multimarkdown (windows bin release + add to emacs path like sqlite3)"

View file

@ -20,6 +20,7 @@
; add executables to path ahead of them being used by extensions / emacs stuff
(add-to-list 'exec-path "C:/Users/mcros/OneDrive/Programs/PortableApps/sqlite3")
(add-to-list 'exec-path "C:/Users/mcros/OneDrive/Programs/PortableApps/MultiMarkdown-Windows-6.6.0/bin")
)
(when kmn/is-termux
; setup storage locations -- cheat so mobile/desktop look alike for file urls
@ -82,6 +83,18 @@
("\\.markdown\\'" . markdown-mode))
:init (setq markdown-command "multimarkdown"))
(use-package markdown-preview-mode
:ensure t
:if (boundp 'mdcommand)
:init
;(setq markdown-preview-auto-open nil)
:custom
(markdown-preview-ws-port 9697)
(markdown-preview-http-port 9696)
(markdown-preview-host "127.0.0.1")
(markdown-preview-http-host "127.0.0.1"))
(setq markdown-preview-stylesheets (list "https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/3.0.1/github-markdown.min.css"))
; lua
(autoload 'lua-mode "lua-mode" "Lua editing mode." t)
(add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode))