Skip to content

Commit

Permalink
Add zk-index-view-mode-lighter
Browse files Browse the repository at this point in the history
  • Loading branch information
localauthor committed Jul 4, 2024
1 parent e6b6e43 commit 9a2ece3
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions zk-index.el
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ Set to nil to inhibit help-echo."
"Enable automatically showing note at point in ZK-Index."
:type 'boolean)

(defcustom zk-index-view-hide-cursor t
"Hide cursor in `zk-index-view-mode'."
:type 'boolean)

(defcustom zk-index-cursor nil
"Cursor to use when `zk-index’ is in the selected window.
See `cursor-type’ for description of possible values."
Expand All @@ -98,6 +94,14 @@ See the default function `zk-index-button-display-action' for an
example."
:type 'function)

(defcustom zk-index-view-hide-cursor t
"Hide cursor in `zk-index-view-mode'."
:type 'boolean)

(defcustom zk-index-view-mode-lighter " ZK-View"
"Lighter for `zk-view-mode’."
:type 'string)

;;; ZK-Index Major Mode Settings

(defvar zk-index-mode-map
Expand Down Expand Up @@ -125,7 +129,7 @@ example."
(read-only-mode)
(hl-line-mode)
(setq-local show-paren-mode nil)
(setq cursor-type zk-index-cursor))
(setq-local cursor-type zk-index-cursor))


;;; Declarations
Expand Down Expand Up @@ -623,7 +627,7 @@ Takes an option POS position argument."
"Minor mode for `zk-index-auto-scroll'."
:init-value nil
:global nil
:lighter " ZK-View"
:lighter (:eval zk-index-view-mode-lighter)
:keymap '(((kbd "n") . zk-index-next-line)
((kbd "p") . zk-index-previous-line)
([return] . zk-index-view-mode)
Expand Down

0 comments on commit 9a2ece3

Please sign in to comment.