From 263e6e5c2a06cbb9e7eabdb5b0644ab8e099f772 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 3 Dec 2019 13:37:56 +0100 Subject: Emacs: fix company-mode initialisation --- user/emacs/.emacs.d/init.el | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'user') diff --git a/user/emacs/.emacs.d/init.el b/user/emacs/.emacs.d/init.el index f9f4b0a4..a01be536 100644 --- a/user/emacs/.emacs.d/init.el +++ b/user/emacs/.emacs.d/init.el @@ -428,15 +428,16 @@ _p_rev _u_pper _=_: upper/lower _r_esolve (use-package company :defer 2 :commands (company-explicit-action-p) - :config (setq global-company-mode +1 - company-idle-delay 0 - company-tooltip-align-annotations t - company-show-numbers t - company-dabbrev-downcase nil - company-dabbrev-ignore-case nil - company-begin-commands '(self-insert-command) - company-auto-complete #'company-explicit-action-p - company-auto-complete-chars '(?\ ?\( ?\) ?.)) + :config (progn + (setq company-idle-delay 0 + company-tooltip-align-annotations t + company-show-numbers t + company-dabbrev-downcase nil + company-dabbrev-ignore-case nil + company-begin-commands '(self-insert-command) + company-auto-complete #'company-explicit-action-p + company-auto-complete-chars '(?\ ?\( ?\) ?.)) + (global-company-mode +1)) :general (:states 'insert "TAB" #'company-indent-or-complete-common)) -- cgit 1.4.1