Skip to content

Commit

Permalink
feature: add option for highlight line-color
Browse files Browse the repository at this point in the history
  • Loading branch information
sakurawald committed Nov 30, 2024
1 parent dffb812 commit 511d90b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/highlight-line.lisp
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
(in-package :lem-core)

(define-editor-variable highlight-line nil)
(define-editor-variable highlight-line-color nil)

(defun highlight-line-color ()
(alexandria:if-let ((color (variable-value 'highlight-line-color)))
color
(guess-highlight-line-color)))

(defun guess-highlight-line-color ()
(when (background-color)
(let ((color (parse-color (background-color))))
(multiple-value-bind (h s v)
Expand Down

0 comments on commit 511d90b

Please sign in to comment.