forked from emacs-exordium/exordium
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinit-autocomplete.el
More file actions
36 lines (30 loc) · 933 Bytes
/
Copy pathinit-autocomplete.el
File metadata and controls
36 lines (30 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
;;; init-autocomplete.el --- Autocomplete -*- lexical-binding: t -*-
;;; Commentary:
;;
;;; Code:
(eval-when-compile
(unless (featurep 'init-require)
(load (file-name-concat (locate-user-emacs-file "modules") "init-require"))))
(exordium-require 'init-prefs)
(use-package auto-complete
:commands (ac-stop
ac-complete)
:defer t
:custom
;; Case sensitivity is important when finding matches
;; Values are: t, nil, or 'smart
(ac-ignore-case nil)
;; Start auto-completion after 2 characters of a word
;; Values are: an integer, or nil to disable
(ac-auto-start 2)
:config
;; Default config for auto-complete
(ac-config-default)
:bind
(;; Key to force trigger auto-complete (useful if ac-auto-start is set to nil)
("C-." . #'auto-complete)
:map ac-completing-map
("ESC" . #'ac-stop)
("RET" . #'ac-complete)))
(provide 'init-autocomplete)
;;; init-autocomplete.el ends here