From a75647fd4fcc3c575dc9ed905d76544a4dd1e8f4 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 2 Oct 2015 22:44:36 +0200 Subject: [PATCH] Show circe chats in frames without a minibuffer This only actually works when a circe chat is opened with something like `switch-buffer-other-frame'. Just switching buffers normally doesn't work. Which is actually pretty much how I want it to be. --- emacs/.emacs.d/init.el | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 099f94e..3ef4a46 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -236,6 +236,13 @@ But only if it is a maildir inbox." "Function for `diary-display-hook'." (diary-fancy-display)) +(defun oni:display-in-minibufferless-frame (buffer _) + (let ((default-frame-alist default-frame-alist)) + (push '(minibuffer . nil) default-frame-alist) + (let ((frame (make-frame))) + (select-frame frame) + (switch-to-buffer buffer)))) + (defun oni:downcase-prev (num) (interactive "p") (oni:change-prev-case num 'down)) @@ -1048,7 +1055,7 @@ from myaethon2.core.decorators import ( (setq lui-time-stamp-format "%H:%M") (setq lui-fill-type 'variable) (add-hook 'lui-mode-hook (lambda () (setq right-margin-width 5))) - (add-hook 'circe-channel-mode-hook (lambda () (setq mode-line-format "")))) + (add-hook 'circe-channel-mode-hook (lambda () (setq mode-line-format nil)))) (stante-after compile (setq compilation-scroll-output t)) @@ -1326,7 +1333,10 @@ from myaethon2.core.decorators import ( '("^\\*Help\\*$" display-buffer-in-side-window)) (add-to-list 'display-buffer-alist - `(,(rx bol "*helm") display-buffer-in-side-window (side . right)))) + `(,(rx bol "*helm") display-buffer-in-side-window (side . right)) + + (add-to-list 'display-buffer-alist + '("^\#mowedline$" oni:display-in-minibufferless-frame)))) (stante-after woman (setq woman-fill-column 72))