Skip to content

Commit

Permalink
Move persp-asave-on-exit from kill-emacs-hook to kill-emacs-query-fun…
Browse files Browse the repository at this point in the history
…ctions.
  • Loading branch information
Bad-ptr committed Aug 29, 2016
1 parent 37c8fde commit f6f2475
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions persp-mode.el
Expand Up @@ -1386,7 +1386,7 @@ named collections of buffers and window configurations."
(add-hook 'before-make-frame-hook #'persp-before-make-frame)
(add-hook 'after-make-frame-functions #'persp-init-new-frame)
(add-hook 'delete-frame-functions #'persp-delete-frame)
(add-hook 'kill-emacs-hook #'persp-asave-on-exit)
(add-hook 'kill-emacs-query-functions #'persp-asave-on-exit)
(add-hook 'server-switch-hook #'persp-server-switch)
(when persp-add-buffer-on-after-change-major-mode
(add-hook 'after-change-major-mode-hook #'persp-after-change-major-mode-h))
Expand Down Expand Up @@ -1420,7 +1420,7 @@ named collections of buffers and window configurations."
(remove-hook 'before-make-frame-hook #'persp-before-make-frame)
(remove-hook 'after-make-frame-functions #'persp-init-new-frame)
(remove-hook 'delete-frame-functions #'persp-delete-frame)
(remove-hook 'kill-emacs-hook #'persp-asave-on-exit)
(remove-hook 'kill-emacs-query-functions #'persp-asave-on-exit)
(remove-hook 'server-switch-hook #'persp-server-switch)
(remove-hook 'after-change-major-mode-hook #'persp-after-change-major-mode-h)

Expand Down

0 comments on commit f6f2475

Please sign in to comment.