Browse Source

[Fix #604] Save only the current buffer on focus lost

custom
Bozhidar Batsov 12 years ago
parent
commit
fa40fc8a7e
  1. 7
      core/prelude-editor.el

7
core/prelude-editor.el

@ -173,13 +173,8 @@ The body of the advice is in BODY."
(add-hook 'mouse-leave-buffer-hook 'prelude-auto-save-command)
;; Autosave buffers when focus is lost
(defun prelude-save-all-buffers ()
"Save all modified buffers, without prompts."
(save-some-buffers 'dont-ask))
(when (version<= "24.4" emacs-version)
(add-hook 'focus-out-hook 'prelude-save-all-buffers))
(add-hook 'focus-out-hook 'prelude-auto-save-command))
;; highlight the current line
(global-hl-line-mode +1)

Loading…
Cancel
Save