Browse Source

preview file cleanup

pull/16/head v0.5
Igor Shymko 6 years ago
parent
commit
8d48d92324
  1. 6
      markdown-preview-mode.el

6
markdown-preview-mode.el

@ -170,7 +170,11 @@
(defun markdown-preview--stop ()
"Stop `markdown-preview' mode."
(remove-hook 'after-save-hook 'markdown-preview--send-preview t)
(markdown-preview--stop-idle-timer))
(markdown-preview--stop-idle-timer)
(let ((preview-file (concat (file-name-directory (buffer-file-name)) markdown-preview-file-name)))
(if (file-exists-p preview-file)
(delete-file preview-file)))
)
;;;###autoload
(defun markdown-preview-open-browser ()

Loading…
Cancel
Save