Skip to content

Commit

Permalink
Improve declarations. Use featurep for detection.
Browse files Browse the repository at this point in the history
- Add more declarations.
- Mark external packages with "ext" in `declare-function`.
- Use `featurep` to detect whether requirements are installed.
  • Loading branch information
okamsn committed Jul 25, 2023
1 parent 7e51e1a commit aab3ae4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion company-prescient.el
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ This is for use on `company-completion-finished-hook'.")
"Minor mode to use prescient.el in Company completions."
:global t
:group 'prescient
(if (not (boundp company-transformers))
(if (not (featurep 'company))
(progn
(setq company-prescient-mode nil)
(user-error "`company-prescient-mode': Company not found"))
Expand Down
2 changes: 1 addition & 1 deletion vertico-prescient.el
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ This mode will:
- advise `vertico-insert' to remember candidates"
:global t
:group 'prescient
(if (not (boundp 'vertico-sort-function))
(if (not (featurep 'vertico))
(progn
(setq vertico-prescient-mode nil)
(user-error "`vertico-prescient-mode': Vertico not found"))
Expand Down

0 comments on commit aab3ae4

Please sign in to comment.