Browse Source

kill-buffer-hook fix

pull/3/head
Igor Shymko 8 years ago
parent
commit
541b2a690a
  1. 2
      markdown-preview-mode.el

2
markdown-preview-mode.el

@ -132,7 +132,7 @@
(setq mdpm:idle-timer
(run-with-idle-timer 2 t 'mdpm:send-preview))
(add-hook 'after-save-hook 'mdpm:send-preview nil t)
(add-hook 'kill-buffer-hook 'mdpm:stop-idle-timer))
(add-hook 'kill-buffer-hook 'mdpm:stop))
(defun mdpm:stop ()
(remove-hook 'after-save-hook 'mdpm:send-preview t)

Loading…
Cancel
Save