* mu4e-compose: disable org-contacts when completion is enabled

This commit is contained in:
djcb
2013-05-15 22:09:17 +03:00
parent a2eef4fa41
commit dfb6382c04

View File

@ -234,6 +234,9 @@ appear on disk."
(when (boundp 'completion-cycle-threshold)
(make-local-variable 'completion-cycle-threshold)
(setq completion-cycle-threshold mu4e~completion-cycle-treshold))
;; disable org-contacts support, since it prevents our autocompletion
(make-local-variable 'completion-at-point-functions)
(remove 'org-contacts-message-complete-function completion-at-point-functions)
(add-to-list 'completion-at-point-functions 'mu4e~compose-complete-contact)
;; needed for emacs 23...
(when (= emacs-major-version 23)