Skip to content

Commit

Permalink
add two editor variables to line-numbers
Browse files Browse the repository at this point in the history
add two editor variables to line-numbers, `line-format` and `custom-current-line`. they allow the user to set the line format and choose a custom current line if they want.

for example :

`(setf (variable-value 'line-number-format :global) "~2D ")`

for a narrow line-number column. and

`(setf (variable-value 'custom-current-line :global) "->")`

for a current-line indicator of `->`
  • Loading branch information
SequentialDesign committed Dec 6, 2024
1 parent 0485955 commit 4d5417e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ext/line-numbers.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

(define-editor-variable line-number-format "~6D "
"Set to desired format, for example, \"~2D \" for a
two-character line-number column.")
two-character line-number column and a margin of one space.")

(define-editor-variable custom-current-line nil
"Set to desired current-line value when relative line
numbers are active, for example, \"->\". NIL will make the
numbers are active, for example, \"->\". NIL will make
the absolute value of the current line display.")

(define-attribute line-numbers-attribute
Expand Down

0 comments on commit 4d5417e

Please sign in to comment.