mirror of
https://github.com/larstvei/Focus.git
synced 2025-01-31 04:30:13 +00:00
Defined variables to help hide the cursor
Used in focus-read-only-mode
This commit is contained in:
parent
ac711fe13a
commit
94ed8ab68b
13
focus.el
13
focus.el
@ -65,15 +65,26 @@ Things that are defined include `symbol', `list', `sexp',
|
|||||||
:type '(repeat symbol)
|
:type '(repeat symbol)
|
||||||
:group 'focus)
|
:group 'focus)
|
||||||
|
|
||||||
|
(defcustom focus-read-only-blink-seconds 1
|
||||||
|
"The duration of a cursor blink in `focus-read-only-mode'."
|
||||||
|
:type '(float)
|
||||||
|
:group 'focus)
|
||||||
|
|
||||||
(defvar focus-pre-overlay nil
|
(defvar focus-pre-overlay nil
|
||||||
"The overlay that dims the text prior to the current-point.")
|
"The overlay that dims the text prior to the current-point.")
|
||||||
|
|
||||||
(defvar focus-post-overlay nil
|
(defvar focus-post-overlay nil
|
||||||
"The overlay that dims the text past the current-point.")
|
"The overlay that dims the text past the current-point.")
|
||||||
|
|
||||||
|
(defvar focus-read-only-blink-timer nil
|
||||||
|
"Timer started from `focus-read-only-cursor-blink'.
|
||||||
|
The timer calls `focus-read-only-hide-cursor' after
|
||||||
|
`focus-read-only-blink-seconds' seconds.")
|
||||||
|
|
||||||
;; Use make-local-variable for backwards compatibility.
|
;; Use make-local-variable for backwards compatibility.
|
||||||
(dolist (var '(focus-pre-overlay
|
(dolist (var '(focus-pre-overlay
|
||||||
focus-post-overlay))
|
focus-post-overlay
|
||||||
|
focus-read-only-blink-timer))
|
||||||
(make-local-variable var))
|
(make-local-variable var))
|
||||||
|
|
||||||
;; Changing major-mode should not affect Focus mode.
|
;; Changing major-mode should not affect Focus mode.
|
||||||
|
Loading…
Reference in New Issue
Block a user