fixed #46 - fixed Emacs close window problem

This commit is contained in:
Bozhidar Batsov 2012-02-14 13:21:04 +02:00
parent 401a913402
commit 5eced03c42

View file

@ -66,8 +66,9 @@
(mkdir erc-log-channels-directory t)) (mkdir erc-log-channels-directory t))
(setq erc-save-buffer-on-part t) (setq erc-save-buffer-on-part t)
(defadvice save-buffers-kill-emacs (before save-logs (arg) activate) ;; FIXME - this advice is wrong and is causing problems on Emacs exit
(save-some-buffers t (lambda () (when (eq major-mode 'erc-mode) t)))) ;; (defadvice save-buffers-kill-emacs (before save-logs (arg) activate)
;; (save-some-buffers t (lambda () (when (eq major-mode 'erc-mode) t))))
;; truncate long irc buffers ;; truncate long irc buffers
(erc-truncate-mode +1) (erc-truncate-mode +1)