Browse files

disable autosave on buffer switch

  • Loading branch information...
1 parent af6adf6 commit 079e37137b0ae0bd4708353c7bfe48dd9ee27d11 @langmartin committed Oct 16, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 rc-emacs.el
View
12 rc-emacs.el
@@ -321,11 +321,11 @@ Equivalent to \\[set-mark-command] when \\[transient-mark-mode] is disabled"
(rc-org-mode-line-less-decoration)
(rc-erc-mode-line-less-decoration))
-(progn
- ;; autosave buffer on window switch
- (defadvice switch-to-buffer (before save-buffer-now activate)
- (when buffer-file-name (save-buffer)))
- (defadvice other-window (before other-window-now activate)
- (when buffer-file-name (save-buffer))))
+;; (progn
+;; ;; autosave buffer on window switch
+;; (defadvice switch-to-buffer (before save-buffer-now activate)
+;; (when buffer-file-name (save-buffer)))
+;; (defadvice other-window (before other-window-now activate)
+;; (when buffer-file-name (save-buffer))))
(provide 'rc-emacs)

0 comments on commit 079e371

Please sign in to comment.