Skip to content

Instantly share code, notes, and snippets.

View greenrd's full-sized avatar

Robin Green greenrd

View GitHub Profile
;; emacsd-tile.el -- tiling windows for emacs
;; Sep 2010: Modified by Robin Green <greenrd@greenrd.org> to use modified cursor keys
(defun swap-with (dir)
(interactive)
(let ((other-window (windmove-find-other-window dir)))
(when other-window
(let* ((this-window (selected-window))
(this-buffer (window-buffer this-window))
(other-buffer (window-buffer other-window))