Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. (defun mw-other-window-repeat (count &optional all-frames)
  2. "Wrapper around `other-window' to continue to jump to other with key o."
  3. (interactive "p")
  4. (other-window count all-frames)
  5. (message "Use o to jump to next window.")
  6. (set-transient-map
  7. (let ((map (make-sparse-keymap)))
  8. (define-key map (kbd "o")
  9. (lambda () (interactive) (mw-other-window-repeat 1)))
  10. map)))
  11.  
  12. (global-set-key (kbd "C-x o") #'mw-other-window-repeat)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement