Provide thing at point for consult line history
Inspired by https://arialdomartini.github.io/consult-line-at-point.
This commit is contained in:
parent
f49903f168
commit
297cc8fa05
11
init.el
11
init.el
@ -2380,6 +2380,7 @@ Note that this workaround is incomplete, as explained in this comment."
|
|||||||
consult-buffer
|
consult-buffer
|
||||||
consult-imenu
|
consult-imenu
|
||||||
consult-line
|
consult-line
|
||||||
|
consult-line-thing-at-point
|
||||||
consult-mark
|
consult-mark
|
||||||
consult-yank-pop
|
consult-yank-pop
|
||||||
consult-outline)
|
consult-outline)
|
||||||
@ -2391,7 +2392,15 @@ Note that this workaround is incomplete, as explained in this comment."
|
|||||||
consult-async-input-throttle 0.8
|
consult-async-input-throttle 0.8
|
||||||
consult-narrow-key nil
|
consult-narrow-key nil
|
||||||
consult-preview-key 'any))
|
consult-preview-key 'any))
|
||||||
:config (require 'consult-imenu))
|
:config (progn
|
||||||
|
(require 'consult-imenu)
|
||||||
|
|
||||||
|
(consult-customize
|
||||||
|
consult-line :add-history (seq-some #'thing-at-point '(region symbol)))
|
||||||
|
|
||||||
|
(defalias 'consult-line-thing-at-point 'consult-line)
|
||||||
|
(consult-customize
|
||||||
|
consult-line-thing-at-point :initial (thing-at-point 'symbol))))
|
||||||
|
|
||||||
(use-package corfu
|
(use-package corfu
|
||||||
:commands (global-corfu-mode corfu-mode))
|
:commands (global-corfu-mode corfu-mode))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user