kill-buffer-hook fix

This commit is contained in:
Igor Shymko 2014-10-27 13:20:43 +02:00
parent 8c086640b8
commit 541b2a690a
1 changed files with 1 additions and 1 deletions

View File

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