preview url var
This commit is contained in:
parent
8454901b16
commit
81c83bbeaf
@ -36,10 +36,10 @@
|
||||
(defvar mdpm:websocket-server nil)
|
||||
(defvar mdpm:local-client nil)
|
||||
(defvar mdpm:remote-clients nil)
|
||||
(defvar mdpm:directory (file-name-directory load-file-name))
|
||||
(defvar mdpm:preview-url (concat (file-name-directory load-file-name) "preview.html"))
|
||||
|
||||
(defun mdpm:open-browser-preview ()
|
||||
(browse-url (concat mdpm:directory "preview.html")))
|
||||
(browse-url mdpm:preview-url))
|
||||
|
||||
(defun mdpm:stop-websocket-server ()
|
||||
(when mdpm:local-client
|
||||
|
5
markdown-preview-mode.rcp
Normal file
5
markdown-preview-mode.rcp
Normal file
@ -0,0 +1,5 @@
|
||||
(:name markdown-preview-mode
|
||||
:description "Markdown preview mode with websocket.el"
|
||||
:type github
|
||||
:website "https://github.com/ancane/markdown-preview-mode.git"
|
||||
:pkgname "ancane/markdown-preview-mode")
|
Loading…
Reference in New Issue
Block a user