mu4e: use substring when completing contacts
Make substring the first completion strategy.
This commit is contained in:
@ -293,11 +293,10 @@ 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-to-list (make-local-variable 'completion-styles) 'substring)
|
||||||
(add-hook 'completion-at-point-functions
|
(add-hook 'completion-at-point-functions
|
||||||
'mu4e~compose-complete-contact nil t))
|
'mu4e~compose-complete-contact nil t))
|
||||||
|
|
||||||
|
|
||||||
(defun mu4e~remove-refs-maybe ()
|
(defun mu4e~remove-refs-maybe ()
|
||||||
"Remove the References: header if the In-Reply-To header is
|
"Remove the References: header if the In-Reply-To header is
|
||||||
missing. This allows the user to effectively start a new
|
missing. This allows the user to effectively start a new
|
||||||
|
|||||||
Reference in New Issue
Block a user