Skip to content

Instantly share code, notes, and snippets.

@LeifAndersen
Created July 21, 2011 18:22
Show Gist options
  • Save LeifAndersen/1097809 to your computer and use it in GitHub Desktop.
Save LeifAndersen/1097809 to your computer and use it in GitHub Desktop.
(defun my-cedet-hook ()
(local-set-key [(control return)] 'semantic-ia-complete-symbol)
(local-set-key "\C-cf" 'semantic-ia-complete-symbol-menu)
(local-set-key "\C-c\C-f" 'semantic-complete-analyze-inline)
(local-set-key "\C-cp" 'semantic-analyze-proto-impl-toggle))
(add-hook 'c-mode-common-hook 'my-cedet-hook)
(add-hook 'c++-mode-common-hook 'my-cedet-hook)
(defun my-c-mode-cedet-hook ()
(local-set-key "." 'semantic-complete-self-insert)
(local-set-key ">" 'semantic-complete-self-insert)
(local-set-key "]" 'semantic-complete-self-insert))
(add-hook 'c-mode-common-hook 'my-c-mode-cedet-hook)
(add-hook 'c++-mode-common-hook 'my-c-mode-cedet-hook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment