File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 2
2
(defconst cursorless-hats-file
3
3
(concat cursorless-directory " vscode-hats.json" ))
4
4
5
- ; ; TODO: defcustom
6
- (defconst cursorless-color-alist
7
- '((default . " #999" ) (blue . " #04f" ) (red . " #e00" ) (green . " #0b0" )
8
- (yellow . " #ffc000" )
9
- (pink . " #ffa0ff" )))
10
- ; ; (defconst cursorless-color-alist ; dark theme
11
- ; ; '((default . "#999") (blue . "#0af") (red . "#f00") (pink . "#fa8072") (green . "#0a0")))
5
+ (defcustom cursorless-color-alist
6
+ '((default . " #999" )
7
+ (blue . " #04f" )
8
+ (red . " #e00" )
9
+ (pink . " #ffa0ff" )
10
+ (green . " #0b0" )
11
+ (yellow . " ffc000" )
12
+ (userColor1 . " #6a00ff" )
13
+ (userColor2 . " #ffd8b1" ))
14
+ " The mapping from cursorless color phrases to emacs colors."
15
+ :group 'cursorless )
12
16
13
17
(defvar cursorless-show-hats t )
14
18
Original file line number Diff line number Diff line change 94
94
:path (or (buffer-file-name ) :null )
95
95
:temporaryFilePath (cursorless-temporary-file-path)
96
96
:firstVisibleLine (line-number-at-pos (window-start ))
97
- :lastVisibleLine (line-number-at-pos (- ( window-end ) 1 ))
97
+ :lastVisibleLine (line-number-at-pos (window-end ))
98
98
; ; where the cursors are. in emacs, only one cursor, so a singleton vector.
99
99
; ; note that cursorless wants line/column, not offset.
100
100
; ; TODO: if transient-mark-mode is enabled, represent the whole selection.
You can’t perform that action at this time.
0 commit comments