kill-buffer-hook fix
This commit is contained in:
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…
Reference in New Issue
Block a user