2010-03-25 Show Only rcirc Buffers

The following function will replace whatever you are looking at with all your rcirc targets (channels and query buffers). It turns out that with 13 channels I’m already reaching a limit on this display. Bummer!

=> rcirc

(defun rcirc-only ()
  (interactive)
  (let (channels)
    (dolist (buf (buffer-list))
      (with-current-buffer buf
	(when (and (eq major-mode 'rcirc-mode)
		   rcirc-target)
	  (setq channels (cons buf channels)))))
    (delete-other-windows)
    (let ((win (selected-window))
	  (size (/ (window-height) (length channels))))
      (dolist (buf channels)
	(split-window-vertically (- (window-height) size))
	(window--display-buffer-2 buf (selected-window)))
      (delete-window win)))
  (balance-windows))

As I said. Useless. Every window is about three lines high. Gaaah! >{

​#Emacs ​#IRC

Comments

(Please contact me if you want to remove your comment.)

fledermaus suggested http://paste.lisp.org/display/96878 on ​#emacs.

=> http://paste.lisp.org/display/96878

And:

17:17 fledermaus

17:18 fledermaus

Interesting...

– Alex Schroeder 2010-03-25 16:18 UTC

=> Alex Schroeder


see rcirc-groups to have an IRC equivalent to Group with gnus. I still have some bugs around eve for you to participate 😄

=> http://github.com/dimitri/rcirc-groups

– dim 2010-03-25 21:19 UTC

=> dim

Proxy Information
Original URL
gemini://alexschroeder.ch/2010-03-25_Show_Only_rcirc_Buffers
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
162.776772 milliseconds
Gemini-to-HTML Time
0.439624 milliseconds

This content has been proxied by September (3851b).