Skip to content

Commit 25898fb

Browse files
committed
Merge branch 'main' into more-commands
2 parents 32b76a2 + f29dc93 commit 25898fb

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

cursorless-hats.el

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22
(defconst cursorless-hats-file
33
(concat cursorless-directory "vscode-hats.json"))
44

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)
1216

1317
(defvar cursorless-show-hats t)
1418

cursorless-state.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
:path (or (buffer-file-name) :null)
9595
:temporaryFilePath (cursorless-temporary-file-path)
9696
:firstVisibleLine (line-number-at-pos (window-start))
97-
:lastVisibleLine (line-number-at-pos (- (window-end) 1))
97+
:lastVisibleLine (line-number-at-pos (window-end))
9898
;; where the cursors are. in emacs, only one cursor, so a singleton vector.
9999
;; note that cursorless wants line/column, not offset.
100100
;; TODO: if transient-mark-mode is enabled, represent the whole selection.

0 commit comments

Comments
 (0)