;;;; company-mode

(require 'rtags)
(require 'company)

;; Turn on rtags completions
(setq rtags-completions-enabled t)

;; Turn on company mode everywhere
(global-company-mode)

;; Use ESC to escape company-complete (in addition to C-g)
(define-key company-active-map (kbd "<escape>") 'company-abort)

;; Key to force trigger company-complete
(define-key company-mode-map [(control .)] 'company-complete)

(provide 'init-company)

;;;; company-mode

(require 'rtags)
(require 'company)
(require 'diminish)

;; Turn on rtags completions
(setq rtags-completions-enabled t)

;; Turn on company mode everywhere
(global-company-mode)

;; Use ESC to escape company-complete (in addition to C-g)
(define-key company-active-map (kbd "<escape>") 'company-abort)

;; Key to force trigger company-complete
(define-key company-mode-map [(control .)] 'company-complete)

;; Clean up mode-line.
(eval-after-load "company"
  '(diminish 'company-mode "CA"))

(provide 'init-company)

Clean up line mode for company
Clean up line mode for company

'company' is a bit too long to my taste. Let's use 'CA' which is
not only shorter, not only respects Complete Any but is an anagram
of 'AC' used by the competition a.k.a auto-complete.

steve-downey/dot.emacs,fcassirer/dot.emacs,pkryger/exordium,jbibollet/exordium,philippe-grenet/exordium,psipika/exordium