summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-09-09 13:46:37 +0100
committerAlan Pearce2013-09-09 14:10:17 +0100
commitc12b575f04d653d12edfc9188a70f709607a30c3 (patch)
tree2e83f975a92f52b3526ae52ae30f01ac884233ce /emacs
parent946245e6c206f971e3ee3bd2f05be3fb5bbc57a0 (diff)
downloadnixfiles-c12b575f04d653d12edfc9188a70f709607a30c3.tar.lz
nixfiles-c12b575f04d653d12edfc9188a70f709607a30c3.tar.zst
nixfiles-c12b575f04d653d12edfc9188a70f709607a30c3.zip
Emacs: set company completion to only happen after inserting text
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el
index b9597020..620c5b30 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -311,7 +311,8 @@ Values: `desktop', `server', `laptop'")
   :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