Skip to content

Instantly share code, notes, and snippets.

@pnf
Created March 30, 2016 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pnf/d7760e34a0c11ed61068f4010a8315da to your computer and use it in GitHub Desktop.
Save pnf/d7760e34a0c11ed61068f4010a8315da to your computer and use it in GitHub Desktop.
;; La bella vita di quattro finestre
(global-set-key "\C-col" 'windmove-left)
(global-set-key "\C-cor" 'windmove-right)
(global-set-key "\C-cou" 'windmove-up)
(global-set-key "\C-cod" 'windmove-down)
(global-set-key "\C-cow" 'ido-jump-to-window)
(defun windmove-opposite () (interactive)
(if (windmove-find-other-window 'up) (windmove-up) (windmove-down))
(if (windmove-find-other-window 'right) (windmove-right)(windmove-left)))
(global-set-key "\C-coo" 'windmove-opposite)
(defun quattro () (interactive)
(delete-other-windows)
(split-window-below)
(split-window-right)
(windmove-down)
(split-window-right)
(next-buffer)
(other-window 1)
(next-buffer)
(other-window 1)
(next-buffer)
)
(global-set-key "\C-co4" 'quattro)
(defun due () (interactive)
(delete-other-windows)
(split-window-below)
(next-buffer))
(global-set-key "\C-co2" 'due)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment