emacs+autocomplete+semantic实现自动补全

谭锐藻
2023-12-01
;; for cedet
(load-file "~/site/cedet-1.1/common/cedet.el")
(global-ede-mode t)
(semantic-load-enable-semantic-debugging-helpers)
(semantic-load-enable-excessive-code-helpers)
(setq semantic-idle-scheduler-idle-time 1)
(setq semantic-idle-scheduler-work-idle-time 120)

(setq semanticdb-project-roots '("e:/current07/src/" "e:/current06/src"))


;; for autocomplete
(require 'auto-complete-config)
(ac-config-default)
(setq ac-auto-start nil)
(ac-set-trigger-key "M-/")

;; 补全成员bianliang
(defun my-semantic-complete ()
      (interactive)
      (auto-complete '(ac-source-semantic)))
(global-set-key "\C-cn" 'my-semantic-complete)
(setq semantic-idle-completions-mode nil)

 类似资料: