diff options
| author | BardofSprites <[email protected]> | 2024-11-16 15:40:00 -0500 |
|---|---|---|
| committer | BardofSprites <[email protected]> | 2024-11-16 15:40:00 -0500 |
| commit | f425c2f84af59f5235cca3bd20ebffe4d0be5d61 (patch) | |
| tree | 9b8b5739b32d18fb98663b307f1c54f415ba53ac /bard-emacs-modules | |
| parent | 51bd4342d70c96f150703fff8e280d59709154ed (diff) | |
centered cursor indicator
Diffstat (limited to 'bard-emacs-modules')
| -rw-r--r-- | bard-emacs-modules/bard-emacs-modeline.el | 1 | ||||
| -rw-r--r-- | bard-emacs-modules/bard-emacs-writing.el | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/bard-emacs-modules/bard-emacs-modeline.el b/bard-emacs-modules/bard-emacs-modeline.el index 30f01b1..5333aae 100644 --- a/bard-emacs-modules/bard-emacs-modeline.el +++ b/bard-emacs-modules/bard-emacs-modeline.el @@ -7,6 +7,7 @@ '("%e" prot-modeline-kbd-macro prot-modeline-narrow + bard-modeline-centered-cursor prot-modeline-input-method prot-modeline-buffer-status " " diff --git a/bard-emacs-modules/bard-emacs-writing.el b/bard-emacs-modules/bard-emacs-writing.el index c9e0f65..9338764 100644 --- a/bard-emacs-modules/bard-emacs-writing.el +++ b/bard-emacs-modules/bard-emacs-writing.el @@ -134,6 +134,9 @@ maximum-scroll-margin scroll-margin)) (kill-local-variable `,local)))) + (defun bard/cursor-centered-p () + "Check if `bard/scroll-center-cursor-mode` is currently active." + (bound-and-true-p bard/scroll-center-cursor-mode)) :bind (("C-c L" . bard/scroll-center-cursor-mode))) |
