preview url var

This commit is contained in:
Igor Shymko 2014-09-14 17:50:39 +03:00
parent 8454901b16
commit 81c83bbeaf
2 changed files with 7 additions and 2 deletions

View File

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

View 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")