Skip to content

Commit

Permalink
Translate "S-s-<mouse-1>" to "M-," (typically `pop-tag-mark')
Browse files Browse the repository at this point in the history
  • Loading branch information
ubolonton committed Mar 22, 2020
1 parent 94fd621 commit f4cf275
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion config/ublt-dvorak.el
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@
(when-let ((command (key-binding (kbd "M-."))))
(call-interactively command)))

(defun ublt/mouse-pop-tag-mark (event)
"Call the command bound to `M-\,'."
(interactive "e")
(when-let ((command (key-binding (kbd "M-,"))))
(call-interactively command)))


;;; Custom global bindings -------------------------------------------
;; TODO:
Expand Down Expand Up @@ -401,7 +407,8 @@
"M-<wheel-down>" 'scroll-down-line
"M-<wheel-up>" 'scroll-up-line

"s-<mouse-1>" 'ublt/mouse-xref-find-definitions)
"s-<mouse-1>" 'ublt/mouse-xref-find-definitions
"S-s-<mouse-1>" 'ublt/mouse-pop-tag-mark)

;;; Remapping some commands to their improved versions (keeping the key bindings).
(ublt/define-keys global-map
Expand Down

0 comments on commit f4cf275

Please sign in to comment.