From 2395f2aee8fbb07da80ee022c9a4cc06ab665374 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 25 Aug 2013 12:23:17 +0200 Subject: Don't destroy ERC buffers when switching desktops --- .emacs.d/init.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '.emacs.d/init.el') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 9817eba..8d94ecd 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -304,15 +304,17 @@ Also change directories to current working directory." (setq desktop-restore-frames nil) (setq desktop-load-locked-desktop t) (setq desktop-clear-preserve-buffers - (append (list (rx (and bol (or (and "+" (1+ anything)) + (append (list (rx (and bol (or (and "+" (1+ nonl)) "dailies" "work" "tasks" (or "bookmarks.org" "contacts.org")) eol)) (rx (or "*ielm*" "*-jabber-roster-*" "*eshell*" "*ansi-term*" "*slime-repl sbcl*" "*slime-events*")) - (rx (and "*" (or "magit" "scratch-") (1+ anything) - "*"))) + (rx (and "*" (or "magit" "scratch-") (1+ nonl) + "*")) + (rx (or "irc.freenode.net:6667" + (and "#" (1+ nonl))))) desktop-clear-preserve-buffers)) (setq desktop-files-not-to-save (rx (or (regexp "\\(^/[^/:]*:\\|(ftp)$\\)") -- cgit v1.2.3-54-g00ecf