completion/company: add +company/toggle-auto-completion command
This commit is contained in:
parent
c4244de05e
commit
b488e4085f
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,12 @@
|
|||
;;; 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
|
||||
(defun +company/complete ()
|
||||
"Bring up the completion popup. If only one result, complete it."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue