2015-04-03 04:28:13 +00:00
|
|
|
;;; config.el --- Auto-completion configuration File for Spacemacs
|
|
|
|
;;
|
2018-01-04 07:00:25 +00:00
|
|
|
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
|
2015-04-03 04:28:13 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
|
|
|
;; Company -------------------------------------------------------------------
|
|
|
|
|
2017-01-02 05:39:04 +00:00
|
|
|
(defvar spacemacs-default-company-backends
|
2018-11-04 14:12:00 +00:00
|
|
|
'((company-semantic company-dabbrev-code company-gtags company-etags company-keywords)
|
2017-01-02 05:39:04 +00:00
|
|
|
company-files company-dabbrev)
|
|
|
|
"The list of default company backends used by spacemacs.
|
|
|
|
This variable is used to configure mode-specific company backends in spacemacs.
|
|
|
|
Backends in this list will always be active in these modes, as well as any
|
|
|
|
backends added by individual spacemacs layers.")
|
|
|
|
|
2016-03-06 22:20:03 +00:00
|
|
|
(defvar-local auto-completion-front-end 'company
|
|
|
|
"Which auto-completion front end to use.")
|
|
|
|
|
2015-05-04 04:13:58 +00:00
|
|
|
(defvar auto-completion-return-key-behavior 'complete
|
|
|
|
"What the RET key should do when auto-completion menu is active.
|
|
|
|
Possible values are `complete' or `nil'.")
|
|
|
|
|
|
|
|
(defvar auto-completion-tab-key-behavior 'cycle
|
|
|
|
"What the TAB key should do when auto-completion menu is active.
|
|
|
|
Possible values are `complete', `cycle' or `nil'.")
|
|
|
|
|
2015-05-06 02:32:28 +00:00
|
|
|
(defvar auto-completion-complete-with-key-sequence nil
|
|
|
|
"Provide a key sequence (string) to complete the current
|
|
|
|
selection.")
|
2015-04-03 04:28:13 +00:00
|
|
|
|
2015-07-24 12:16:20 +00:00
|
|
|
(defvar auto-completion-complete-with-key-sequence-delay 0.1
|
|
|
|
"Timeout (seconds) when waiting for the second key of
|
|
|
|
`auto-completion-complete-with-key-sequence'.")
|
|
|
|
|
2018-01-01 05:05:02 +00:00
|
|
|
(defvar auto-completion-idle-delay 0.2
|
|
|
|
"Delay (seconds) before completions are shown.")
|
|
|
|
|
2015-06-17 07:06:19 +00:00
|
|
|
(defvar auto-completion-enable-snippets-in-popup nil
|
|
|
|
"If non nil show snippets in the auto-completion popup.")
|
|
|
|
|
2015-05-07 02:22:01 +00:00
|
|
|
(defvar auto-completion-enable-sort-by-usage nil
|
2015-05-06 07:28:50 +00:00
|
|
|
"If non nil suggestions are sorted by how often they are used.")
|
|
|
|
|
2015-05-04 04:15:58 +00:00
|
|
|
(defvar auto-completion-enable-help-tooltip nil
|
2016-08-26 12:37:05 +00:00
|
|
|
"If non nil the docstring appears in a tooltip.
|
|
|
|
If set to `manual', help tooltip appears only when invoked
|
|
|
|
manually.")
|
2015-04-03 04:28:13 +00:00
|
|
|
|
2019-10-13 02:11:10 +00:00
|
|
|
(defvar auto-completion-use-company-box nil
|
|
|
|
"If non nil company-box is used.")
|
|
|
|
|
2015-04-03 04:28:13 +00:00
|
|
|
(defvar company-mode-completion-cancel-keywords
|
|
|
|
'("do"
|
|
|
|
"then"
|
|
|
|
"begin"
|
|
|
|
"case")
|
|
|
|
"Keywords on which to cancel completion so that you can use RET
|
|
|
|
to complet without blocking common line endings.")
|
2015-06-08 19:28:24 +00:00
|
|
|
|
|
|
|
(defvar auto-completion-private-snippets-directory nil
|
|
|
|
"Configurable private snippets directory.")
|