kill-buffer-hook fix

pull/3/head
Igor Shymko 9 years ago
parent 8c086640b8
commit 541b2a690a

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