Browse Source

preview url var

pull/3/head
Igor Shymko 8 years ago
parent
commit
81c83bbeaf
  1. 4
      markdown-preview-mode.el
  2. 5
      markdown-preview-mode.rcp

4
markdown-preview-mode.el

@ -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

@ -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…
Cancel
Save