abo-abo / ace-window

Quickly switch windows in Emacs
970 stars 86 forks source link

Feature Idea: aw-copy-window #149

Closed efroemling closed 5 years ago

efroemling commented 5 years ago

Just wanted to throw this out there: For my own setup I add in a 'aw-copy-window' call which is simply aw-move-window with one line ripped out. I find myself using this all the time when I want to glance around a buffer in another window while keeping my current working window intact. (its a few keystrokes quicker than using the 'switch buffer' option for such cases)

Would anyone be interested in adding this officially?

(defun aw-copy-window (window)
  "Copy the current buffer to WINDOW."
  (let ((buffer (current-buffer)))
    (aw-switch-to-window window)
    (switch-to-buffer buffer)))
abo-abo commented 5 years ago

Thanks, please PR.

efroemling commented 5 years ago

Ok PR is in: https://github.com/abo-abo/ace-window/pull/156