summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-08-17 00:07:52 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-08-17 00:07:52 +0200
commita270b8f0813babda3f8a6d451cf3da5f3b0bc03a (patch)
tree8d011fc4e854235042716df815175a193a72a65c
parentcompany-ebuild.el: no need for :with (diff)
downloadcompany-ebuild-a270b8f0813babda3f8a6d451cf3da5f3b0bc03a.tar.gz
company-ebuild-a270b8f0813babda3f8a6d451cf3da5f3b0bc03a.tar.bz2
company-ebuild-a270b8f0813babda3f8a6d451cf3da5f3b0bc03a.zip
company-ebuild.el: / hack
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
-rw-r--r--company-ebuild.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/company-ebuild.el b/company-ebuild.el
index 2a4cf39..8ef299d 100644
--- a/company-ebuild.el
+++ b/company-ebuild.el
@@ -235,7 +235,6 @@ ARG is the completion argument for annotation and candidates."
(annotation
(company-ebuild--annotation arg))
(candidates
- ;; FIXME: Can not insert the "/" character.
;; TODO: Complete any string that already appears in current buffer.
(cl-remove-if-not (lambda (candidate)
(string-prefix-p arg candidate t))
@@ -252,6 +251,9 @@ in your config:
\(add-hook 'ebuild-mode-hook 'company-ebuild-setup)
or `require' Company-Ebuild:
\(require 'company-ebuild)"
+ ;; HACK: Modify syntax to treat "/" as a word constituent.
+ ;; TODO: (Hard mode) write a proper `company-grab-symbol' replacement.
+ (modify-syntax-entry ?/ "w")
;; Force-enable `company-mode'.
(when (null company-mode)
(company-mode +1))