Auto-complete support for irony-mode
This package provides an auto-complete source for irony-mode. It provides semantic completion for C/C++ and Objective-C languages.
This package is not yet ready for prime-time, this documentation is therefore a work of fiction.
TODO: non-misleading screenshot.
This package depends on:
- auto-complete
- irony-mode
- yasnippet (optional, used when available by
irony-mode
)
Please refer to the documentation of these packages for the basic configuration needed to get started.
The recommended way to install ac-irony
and its dependencies is to use a
package manager.
(defun my-ac-irony-setup ()
;; be cautious, if yas is not enabled before (auto-complete-mode 1), overlays
;; *may* persist after an expansion.
(yas-minor-mode 1)
(auto-complete-mode 1)
(add-to-list 'ac-sources 'ac-source-irony)
(define-key irony-mode-map (kbd "M-RET") 'ac-complete-irony-async))
(add-hook 'irony-mode-hook 'my-ac-irony-setup)