[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/scroll-on-jump eb77ab1920 02/31: readme: add a more comple
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/scroll-on-jump eb77ab1920 02/31: readme: add a more complete example |
Date: |
Thu, 7 Jul 2022 12:03:11 -0400 (EDT) |
branch: elpa/scroll-on-jump
commit eb77ab1920479bf04987e2808e1b782deddd3977
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
readme: add a more complete example
---
readme.rst | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/readme.rst b/readme.rst
index 037c209b41..bc177ad946 100644
--- a/readme.rst
+++ b/readme.rst
@@ -109,6 +109,33 @@ After:
(global-set-key (kbd "<f12>")
(lambda () (interactive) (scroll-on-jump (my-function))))
+
+Complete Example
+----------------
+
+Here is a more complete example for evil-mode users.
+
+.. code-block:: elisp
+
+ (with-eval-after-load 'evil
+ (scroll-on-jump-advice-add evil-undo)
+ (scroll-on-jump-advice-add evil-redo)
+ (scroll-on-jump-advice-add evil-jump-item)
+ (scroll-on-jump-advice-add evil-jump-forward)
+ (scroll-on-jump-advice-add evil-jump-backward)
+ (scroll-on-jump-advice-add evil-ex-search-next)
+ (scroll-on-jump-advice-add evil-ex-search-previous)
+ (scroll-on-jump-advice-add evil-forward-paragraph)
+ (scroll-on-jump-advice-add evil-backward-paragraph))
+
+ (with-eval-after-load 'goto-chg
+ (scroll-on-jump-advice-add goto-last-change)
+ (scroll-on-jump-advice-add goto-last-change-reverse))
+
+ (global-set-key (kbd "<C-M-next>") (scroll-on-jump-interactive
'diff-hl-next-hunk))
+ (global-set-key (kbd "<C-M-prior>") (scroll-on-jump-interactive
'diff-hl-previous-hunk)))
+
+
Customization
=============
- [nongnu] elpa/scroll-on-jump 9767013ca8 13/31: Support wrapping functions that themselves scroll, (continued)
- [nongnu] elpa/scroll-on-jump 9767013ca8 13/31: Support wrapping functions that themselves scroll, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 8fde237ae6 31/31: Change URL to codeberg, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump a614bc7f8f 06/31: Fix the case when the windows buffer is not the current-buffer, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 5a6f698b6f 23/31: Cleanup: replace 'if' with 'cond', ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 1e9e09f0cc 29/31: Fix error counting lines jumping to a point outside buffer range, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump a2d6996a36 24/31: Cleanup: use defgroup, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 7b2919f8d8 27/31: Fix smooth (pixel) scrolling not being used in most cases, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 1f2349edf4 04/31: Fix scrolling down when the point is at the beginning of the buffer, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump e8b79d35d4 09/31: Cleanup: split scroll-on-jump--scroll-impl into it's own function, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 028e672391 03/31: Cleanup: no need for `let*`, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump eb77ab1920 02/31: readme: add a more complete example,
ELPA Syncer <=
- [nongnu] elpa/scroll-on-jump 9c333320ea 05/31: Don't catch and re-raise errors, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 7a51468bdd 14/31: Cleanup: declare variable, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 0cf26a15bb 26/31: Cleanup: use window-body-height, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump df8b208ba7 16/31: readme: add melpa link, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump ea74496fa1 10/31: Fix recursive calls to animate scrolling, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 055144ca83 12/31: Disable moving the point when the destination point doesn't move, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 30e23e8694 01/31: Initial commit, ELPA Syncer, 2022/07/07