Files
.emacs.d/modules/completion/siren-auto-complete.el
Jim Myhrberg 87a86191db Majorly re-organize modules
- Split large modules into smaller parts (e.g. siren-text-manipulation)
- Organize modules into high level groups:
  - completion
  - core
  - editor
  - languages
  - linting
  - misc
  - navigation
  - projects
  - spelling
  - text-editing
  - version-control
  - windows
  - workspaces
2018-05-20 17:31:11 +01:00

35 lines
875 B
EmacsLisp

;;; siren-auto-complete.el --- jimeh's Emacs Siren: auto-complete configuration.
;;; Commentary:
;; Basic configuration for auto-complete.
;;; Code:
(require 'siren-flyspell)
(use-package auto-complete
:bind (:map ac-completing-map
("RET" . ac-complete)
("C-m" . ac-complete)
("C-s" . ac-isearch)
("C-n" . ac-next)
("C-p" . ac-previous))
:config
(ac-flyspell-workaround)
(setq ac-auto-show-menu 0.2
ac-auto-start 3
ac-delay 0.05
ac-menu-height 15)
;; Auto-complete when indenting.
(defadvice indent-for-tab-command (around ac-before-indent activate)
"Call `auto-complete' if text was recently entered."
(if (ac-trigger-command-p last-command)
(auto-complete)
ad-do-it)))
(provide 'siren-auto-complete)
;;; siren-auto-complete.el ends here