Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;; semantic setup
- (defun my-semantic-init-hook ()
- (require 'semantic)
- (require 'semantic/sb)
- (require 'semantic/ia)
- (require 'semantic/bovine/gcc)
- (require 'srecode)
- (global-ede-mode 1)
- (semantic-mode 1)
- (global-semanticdb-minor-mode 1)
- (global-semantic-idle-scheduler-mode 1)
- (global-semantic-idle-completions-mode 1)
- (global-semantic-decoration-mode 1)
- (global-semantic-highlight-func-mode 1)
- (global-semantic-stickyfunc-mode 1)
- (global-semantic-idle-summary-mode 1)
- (global-semantic-mru-bookmark-mode 1)
- (global-semantic-idle-local-symbol-highlight-mode 1)
- (semanticdb-enable-gnu-global-databases 'c-mode)
- (semanticdb-enable-gnu-global-databases 'c++-mode)
- (set-default 'semantic-case-fold t)
- ;; integration with imenu
- (defun my-semantic-hook ()
- (imenu-add-to-menubar "TAGS"))
- (add-hook 'semantic-init-hooks 'my-semantic-hook)
- (local-set-key "." 'semantic-complete-self-insert)
- (local-set-key ">" 'semantic-complete-self-insert)
- ;; semantic system includes
- (semantic-add-system-include "/usr/local/root_v5.32.04/include" 'c-mode)
- (semantic-add-system-include "/usr/local/root_v5.32.04/include" 'c++-mode)
- (semantic-add-system-include "/home/elemakil/HEP/ilcsoft/v01-08-01/lcio/v01-12-02/include" 'c-mode)
- (semantic-add-system-include "/home/elemakil/HEP/ilcsoft/v01-08-01/lcio/v01-12-02/include" 'c++-mode)
- (semantic-add-system-include "/home/elemakil/HEP/ilcsoft/DEPFETTrackTools/source/include" 'c-mode)
- (semantic-add-system-include "/home/elemakil/HEP/ilcsoft/DEPFETTrackTools/source/include" 'c++-mode)
- (semantic-add-system-include "/usr/local/CLHEP_2.1.0.1/include" 'c-mode)
- (semantic-add-system-include "/usr/local/CLHEP_2.1.0.1/include" 'c++-mode)
- )
- (add-hook 'c-mode-hook '(lambda () (my-semantic-init-hook)))
- (add-hook 'c++-mode-hook '(lambda () (my-semantic-init-hook)))
- (add-hook 'c-mode-common-hook '(lambda () (my-semantic-init-hook)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement