Skip to content

Instantly share code, notes, and snippets.

View niranjan-nagaraju's full-sized avatar

Niranjan Nagaraju niranjan-nagaraju

View GitHub Profile
;; emacsd-tile.el -- tiling windows for emacs
(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))
(this-start (window-start this-window))