summaryrefslogtreecommitdiffhomepage
path: root/attic
diff options
context:
space:
mode:
Diffstat (limited to 'attic')
-rw-r--r--attic/elisp/misc.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/attic/elisp/misc.el b/attic/elisp/misc.el
index 1668251..14cd56a 100644
--- a/attic/elisp/misc.el
+++ b/attic/elisp/misc.el
@@ -1362,3 +1362,15 @@ It should be the title of the web page as returned by `rdrview'"
(when-let* ((url (or (get-text-property (point) 'w3m-href-anchor)
(thing-at-point-url-at-point))))
(browse-url url)))
+;;; repeat map for window ops
+(defvar jao-prev-window-repeat-map
+ (let ((map (make-sparse-keymap)))
+ (define-key map "p" 'jao-prev-window)
+ (define-key map "P" (lambda ()
+ (interactive)
+ (setq repeat-map 'jao-prev-window-repeat-map)
+ (other-window 1)))
+ map)
+ "Keymap to repeat `prev-window' key sequences. Used in `repeat-mode'.")
+
+(put 'jao-prev-window 'repeat-map jao-prev-window-repeat-map)