diff options
author | jao <jao@gnu.org> | 2023-01-17 01:31:31 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2023-01-17 01:33:45 +0000 |
commit | f1c90bc2ffd0743c69136ed770da00b493ea99f6 (patch) | |
tree | bbd8e921f0424fb827aa40f120372acbd676b588 | |
parent | 76cff12402fa584f21735b265cdb145b9d376dd9 (diff) | |
download | elibs-f1c90bc2ffd0743c69136ed770da00b493ea99f6.tar.gz elibs-f1c90bc2ffd0743c69136ed770da00b493ea99f6.tar.bz2 |
better activation of symbol-overlay commands
-rw-r--r-- | init.el | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -1903,9 +1903,20 @@ (defun jao-symbol-reveal (&rest _) (when outline-minor-mode (outline-show-entry))) (advice-add 'symbol-overlay-basic-jump :after 'jao-symbol-reveal) + + (defun jao-symbol-put-and-next () + (interactive) + (symbol-overlay-put) + (symbol-overlay-jump-next)) + + (defun jao-symbol-put-and-prev () + (interactive) + (symbol-overlay-put) + (symbol-overlay-jump-prev)) + :bind (:map prog-mode-map (("M-i" . symbol-overlay-put) - ("M-n" . symbol-overlay-switch-forward) - ("M-p" . symbol-overlay-switch-backward))) + ("M-n" . jao-symbol-put-and-next) + ("M-p" . jao-symbol-put-and-prev))) :hook (prog-mode . symbol-overlay-mode) :diminish " ^") |