2020-08-31 15:27:06 +02:00
|
|
|
;;; wpc-company.el --- Autocompletion package, company, preferences -*- lexical-binding: t -*-
|
|
|
|
|
2018-04-25 19:26:53 +02:00
|
|
|
;; Author: William Carroll <wpcarro@gmail.com>
|
2020-08-31 15:27:06 +02:00
|
|
|
;; Version: 0.0.1
|
|
|
|
;; Package-Requires: ((emacs "25.1"))
|
2018-04-25 19:26:53 +02:00
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
;; Hosts my company mode preferences
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
2020-09-02 16:01:43 +02:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; Dependencies
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
|
|
(require 'general)
|
|
|
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; Configuration
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
2018-04-25 19:26:53 +02:00
|
|
|
;; 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)
|
2019-10-09 13:13:56 +02:00
|
|
|
(setq company-tooltip-align-annotations t)
|
2018-04-25 19:26:53 +02:00
|
|
|
(setq company-idle-delay 0)
|
2019-10-09 13:13:56 +02:00
|
|
|
(setq company-show-numbers t)
|
2018-04-25 19:26:53 +02:00
|
|
|
(setq company-minimum-prefix-length 2)
|
2019-10-09 13:13:56 +02:00
|
|
|
(setq company-dabbrev-downcase nil
|
|
|
|
company-dabbrev-ignore-case t)
|
2018-04-25 19:26:53 +02:00
|
|
|
(global-company-mode))
|
|
|
|
|
|
|
|
(provide 'wpc-company)
|
2019-01-13 20:33:17 +01:00
|
|
|
;;; wpc-company.el ends here
|