Skip to content

Instantly share code, notes, and snippets.

@nikital
nikital / company-insert-selected.el
Last active September 7, 2017 19:20
company-insert-selected.el
;;; company-insert-selected.el
;;
;; Similar to the way neocomplete package from Vim deals with autocompletion
;;
(defvar-local company-insert-selected--overlay nil)
(defun company--company-command-p (keys)
"Checks if the keys are part of company's overriding keymap"
(or (equal [company-dummy-event] keys)