summaryrefslogtreecommitdiff
path: root/contrib/nogaps.el
blob: c1d2649737488ef14841a0d8e5aa0babcf1bef69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
;;; Copyright (C) 2003, 2004 Shawn Betts
;;;
;;; Copying and distribution of this file, with or without modification,
;;; are permitted in any medium without royalty provided the copyright
;;; notice and this notice are preserved.

(require 'cl)

(defun ratpoison-nogaps ()
  (let ((wins (mapcar 'string-to-number (split-string (ratpoison-windows "%n")))))
  (loop for n in wins
	for i from 1 to (length wins)
	do (ratpoison-number i n))))