2018-04-25 19:26:53 +02:00
|
|
|
;;; company.el --- Autocompletion package, company, preferences -*- lexical-binding: t -*-
|
|
|
|
;; Author: William Carroll <wpcarro@gmail.com>
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
;; Hosts my company mode preferences
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
;; autocompletion client
|
|
|
|
(use-package company
|
|
|
|
:config
|
2019-01-13 20:33:17 +01:00
|
|
|
(general-define-key
|
|
|
|
:keymaps 'company-active-map
|
|
|
|
"C-j" #'company-select-next
|
|
|
|
"C-n" #'company-select-next
|
|
|
|
"C-k" #'company-select-previous
|
|
|
|
"C-p" #'company-select-previous
|
|
|
|
"C-d" #'company-show-doc-buffer)
|
2018-04-25 19:26:53 +02:00
|
|
|
(setq company-idle-delay 0)
|
|
|
|
(setq company-minimum-prefix-length 2)
|
|
|
|
(global-company-mode))
|
|
|
|
|
|
|
|
(provide 'wpc-company)
|
2019-01-13 20:33:17 +01:00
|
|
|
;;; wpc-company.el ends here
|