General refactor for consistency & idempotency

Also updated comments
This commit is contained in:
Henrik Lissner 2018-05-18 01:21:09 +02:00
parent 50401f6c09
commit 80adb9c1f6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
17 changed files with 48 additions and 40 deletions

View file

@ -32,7 +32,8 @@
:when (featurep! :completion company)
:after elixir-mode
:config
;; Let Doom handle this
;; Alchemist doesn't use hook symbols to add these backends, so we have to use
;; the entire closure to get rid of it.
(let ((fn (byte-compile (lambda () (add-to-list (make-local-variable 'company-backends) 'alchemist-company)))))
(remove-hook 'alchemist-mode-hook fn)
(remove-hook 'alchemist-iex-mode-hook fn))