branch: master commit e97d26f421b4833ee99ef93feab5ee70611261fe Author: Alex Branham <bran...@utexas.edu> Commit: Alex Branham <bran...@utexas.edu>
Specify :type for company-dabbrev -ignore-case and -downcase --- company-dabbrev.el | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/company-dabbrev.el b/company-dabbrev.el index ecb7feb..c51d515 100644 --- a/company-dabbrev.el +++ b/company-dabbrev.el @@ -59,7 +59,11 @@ Or a function that returns non-nil for such buffers." (defcustom company-dabbrev-ignore-case 'keep-prefix "Non-nil to ignore case when collecting completion candidates. When it's `keep-prefix', the text before point will remain unchanged after -candidate is inserted, even some of its characters have different case.") +candidate is inserted, even some of its characters have different case." + :type '(choice + (const :tag "Don't ignore case" nil) + (const :tag "Ignore case" ignore-case) + (const :tag "Keep case before point" keep-prefix))) (defcustom company-dabbrev-downcase 'case-replace "Whether to downcase the returned candidates. @@ -69,7 +73,11 @@ The value of nil means keep them as-is. Any other value means downcase. If you set this value to nil, you may also want to set -`company-dabbrev-ignore-case' to any value other than `keep-prefix'.") +`company-dabbrev-ignore-case' to any value other than `keep-prefix'." + :type '(choice + (const :tag "Keep as-is" nil) + (const :tag "Downcase" downcase) + (const :tag "Use case-replace" case-replace))) (defcustom company-dabbrev-minimum-length 4 "The minimum length for the completion candidate to be included.