completion/company: add +company/toggle-auto-completion command

This commit is contained in:
Henrik Lissner 2018-02-02 15:57:38 -05:00
parent c4244de05e
commit b488e4085f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -1,5 +1,12 @@
;;; completion/company/autoload.el -*- lexical-binding: t; -*- ;;; completion/company/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defun +company/toggle-auto-completion ()
"Toggle as-you-type code completion."
(interactive)
(require 'company)
(setq company-idle-delay (unless company-idle-delay 0.2)))
;;;###autoload ;;;###autoload
(defun +company/complete () (defun +company/complete ()
"Bring up the completion popup. If only one result, complete it." "Bring up the completion popup. If only one result, complete it."