2015-04-03 04:28:13 +00:00
|
|
|
;;; config.el --- Auto-completion configuration File for Spacemacs
|
|
|
|
;;
|
2021-03-22 20:11:29 +00:00
|
|
|
;; Copyright (c) 2012-2021 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.
|
|
|
|
;;
|
2021-03-24 03:31:44 +00:00
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
|
|
|
;;
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
;;
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2015-04-03 04:28:13 +00:00
|
|
|
|
|
|
|
;; 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'.")
|
|
|
|
|
2020-05-15 20:07:17 +00:00
|
|
|
(defvar auto-completion-minimum-prefix-length 2
|
|
|
|
"The minimum prefix length for idle completion.")
|
|
|
|
|
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.")
|
|
|
|
|
2022-02-12 06:01:59 +00:00
|
|
|
(defvar auto-completion-use-company-posframe nil
|
|
|
|
"If non nil company-box is used.")
|
|
|
|
|
2015-06-08 19:28:24 +00:00
|
|
|
(defvar auto-completion-private-snippets-directory nil
|
|
|
|
"Configurable private snippets directory.")
|