featurep! will be renamed modulep! in the future, so it's been deprecated. They have identical interfaces, and can be replaced without issue. featurep! was never quite the right name for this macro. It implied that it had some connection to featurep, which it doesn't (only that it was similar in purpose; still, Doom modules are not features). To undo such implications and be consistent with its namespace (and since we're heading into a storm of breaking changes with the v3 release anyway), now was the best opportunity to begin the transition.
42 lines
1.7 KiB
EmacsLisp
42 lines
1.7 KiB
EmacsLisp
;;; completion/helm/autoload/evil.el -*- lexical-binding: t; -*-
|
|
;;;###if (modulep! :editor evil)
|
|
|
|
;;;###autoload (autoload '+helm:project-search "completion/helm/autoload/evil" nil t)
|
|
(evil-define-command +helm:project-search (all-files-p query)
|
|
"Ex interface for `+helm/grep'"
|
|
(interactive "<!><a>")
|
|
(+helm/project-search all-files-p query))
|
|
|
|
;;;###autoload (autoload '+helm:project-search-from-cwd "completion/helm/autoload/evil" nil t)
|
|
(evil-define-command +helm:project-search-from-cwd (query &optional recurse-p)
|
|
"Ex interface for `+helm/grep-from-cwd'."
|
|
(interactive "<a><!>")
|
|
(+helm/project-search-from-cwd (not recurse-p) query))
|
|
|
|
;;;###autoload
|
|
(defun +helm--set-prompt-display (pos)
|
|
"TODO"
|
|
(let (beg state region-active m)
|
|
(with-selected-window (minibuffer-window)
|
|
(setq beg (save-excursion (vertical-motion 0 (helm-window)) (point))
|
|
state evil-state
|
|
region-active (region-active-p)
|
|
m (mark t)))
|
|
(when region-active
|
|
(setq m (- m beg))
|
|
;; Increment pos to handle the space before prompt (i.e `pref').
|
|
(put-text-property (1+ (min m pos)) (+ 2 (max m pos))
|
|
'face
|
|
(list :background (face-background 'region))
|
|
header-line-format))
|
|
(put-text-property
|
|
;; Increment pos to handle the space before prompt (i.e `pref').
|
|
(+ 1 pos) (+ 2 pos)
|
|
'face
|
|
(if (eq state 'insert)
|
|
'underline
|
|
;; Don't just use 'cursor, this can hide the current character.
|
|
(list :inverse-video t
|
|
:foreground (face-background 'cursor)
|
|
:background (face-background 'default)))
|
|
header-line-format)))
|