Created
June 23, 2011 07:04
-
-
Save prajwalit/1042064 to your computer and use it in GitHub Desktop.
save-layout before killing emacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;; save-layout before killing emacs. (needs revive.el) https://github.com/nunb/revive-mode-config | |
| (defun save-state-kill-emacs (&optional arg) | |
| "Save state, buffers and kill emacs" | |
| (interactive "p") | |
| (emacs-save-layout) | |
| (save-buffers-kill-emacs)) | |
| (global-set-key (kbd "C-x C-c") 'save-state-kill-emacs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Praj,
The easier way to do this is to hook the kill-emacs function. vedang/emacs-up@b6548d1