mu4e: append `substring' to the completion-styles for address-completion

This commit is contained in:
djcb
2014-12-06 14:23:55 +02:00
parent 6d4fe6434f
commit 64ed6e71c1

View File

@ -258,6 +258,7 @@ Ie. either 'name <email>' or 'email')."
"Set up auto-completion of addresses." "Set up auto-completion of addresses."
(set (make-local-variable 'completion-ignore-case) t) (set (make-local-variable 'completion-ignore-case) t)
(set (make-local-variable 'completion-cycle-threshold) 7) (set (make-local-variable 'completion-cycle-threshold) 7)
(add-to-list (make-local-variable 'completion-styles) 'substring t)
(add-hook 'completion-at-point-functions (add-hook 'completion-at-point-functions
'mu4e~compose-complete-contact nil t)) 'mu4e~compose-complete-contact nil t))