diff options
author | Maciej Barć <xgqt@gentoo.org> | 2022-08-17 00:07:52 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2022-08-17 00:07:52 +0200 |
commit | a270b8f0813babda3f8a6d451cf3da5f3b0bc03a (patch) | |
tree | 8d011fc4e854235042716df815175a193a72a65c | |
parent | company-ebuild.el: no need for :with (diff) | |
download | company-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.el | 4 |
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)) |