mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
completion/company: add +company/toggle-auto-completion command
This commit is contained in:
@ -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."
|
||||||
|
Reference in New Issue
Block a user