all repos — archive/dotfiles @ c12b575f04d653d12edfc9188a70f709607a30c3

Superseded by nixfiles

Emacs: set company completion to only happen after inserting text
Alan Pearce alan@bulbstudios.com
Mon, 09 Sep 2013 13:46:37 +0100
commit

c12b575f04d653d12edfc9188a70f709607a30c3

parent

946245e6c206f971e3ee3bd2f05be3fb5bbc57a0

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M emacs/init.elemacs/init.el
@@ -311,7 +311,8 @@ :commands (company-mode)   :bind (("C-<tab>" . company-complete))
   :init (progn
           (add-hook 'prog-mode-hook #'company-mode)
-          (setq company-idle-delay .3)))
+          (setq company-idle-delay .3
+                company-begin-commands '(self-insert-command))))
 
 ;;;; Dates & Times