all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Up and running with semantic
@ 2008-10-01  5:41 etay.meiri
  2008-10-01 14:17 ` Richard Riley
  0 siblings, 1 reply; 2+ messages in thread
From: etay.meiri @ 2008-10-01  5:41 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I have trouble getting semantic up and running. I read through its
installation guide as well as various posting on this group. So far I
have not been able to get it to a state where it is actually usable
and can help me with my work. I'm mostly interested in its
intellisense like features. However, I can't get autocompletion to
work in all buffers. Sometimes it is simply unable to autocomplete a
variable name that was declared just a line above. Also, the feature
that shows a function parameters doesn't work.

I gathered semantic's configuration from various sources and here's
its current state:

(load-file  "~/.emacs_packages/cedet-1.0pre4/common/cedet.el")
(require 'bovine-grammar nil t)
(require 'semantic nil t)
(semantic-load-enable-minimum-features)
(semantic-load-enable-code-helpers)
(global-semantic-idle-scheduler-mode 1)
(global-semantic-idle-completions-mode 1)
(global-semantic-idle-summary-mode 1)
(require 'semantic-sb nil t)
(require 'semanticdb nil t)
(add-to-list 'semanticdb-project-roots "~/workspace")
(global-semanticdb-minor-mode 1)
(semantic-add-system-include "/usr/include/" 'c-mode)
(semantic-add-system-include "/usr/include/" 'c++-mode)
(semantic-add-system-include "/usr/include/c++/" 'c++-mode)
(setq-mode-local c-mode semanticdb-find-default-throttle '(project
unloaded system recursive))
(setq-mode-local c++-mode semanticdb-find-default-throttle '(project
unloaded system recursive))
(setq-mode-local java-mode semanticdb-find-default-throttle '(project
unloaded system recursive))
(when (require 'semantic-ia nil t)
    (global-set-key [(control return)] 'semantic-ia-complete-symbol)
    (global-set-key [(control shift return)] 'semantic-ia-complete-
symbol-menu))
(when (require 'eassist nil t)
    (define-key c-mode-base-map [(control x) (t)] 'eassist-switch-h-
cpp))
(semantic-load-enable-excessive-code-helpers)
(semantic-load-enable-guady-code-helpers)
(which-func-mode t)
(setq semanticdb-default-save-directory "~/tmp/semantic")
(custom-set-variables
 '(global-semantic-stickyfunc-mode nil nil (semantic-util-modes))
 '(semantic-idle-scheduler-idle-time 3)
)
(setq semantic-load-turn-everything-on t)
(require 'semantic-load)
(global-semantic-show-unmatched-syntax-mode -1)

Could someone please share their semantic configuration and the steps
required to get it up and running?

Thanks a lot,

-Etay


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Up and running with semantic
  2008-10-01  5:41 Up and running with semantic etay.meiri
@ 2008-10-01 14:17 ` Richard Riley
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Riley @ 2008-10-01 14:17 UTC (permalink / raw)
  To: help-gnu-emacs

etay.meiri@gmail.com writes:

> Hi,
>
> I have trouble getting semantic up and running. I read through its
> installation guide as well as various posting on this group. So far I
> have not been able to get it to a state where it is actually usable
> and can help me with my work. I'm mostly interested in its
> intellisense like features. However, I can't get autocompletion to
> work in all buffers. Sometimes it is simply unable to autocomplete a
> variable name that was declared just a line above. Also, the feature
> that shows a function parameters doesn't work.

I tried this a while back and got it to a reasonable state but since
then kind of dropped it from my emacs usage so can not really help. You
are better off asking on the cedet development list I think.

http://sourceforge.net/mail/?group_id=17886

Do post here if you get it working!

>
> I gathered semantic's configuration from various sources and here's
> its current state:
>
> (load-file  "~/.emacs_packages/cedet-1.0pre4/common/cedet.el")
> (require 'bovine-grammar nil t)
> (require 'semantic nil t)
> (semantic-load-enable-minimum-features)
> (semantic-load-enable-code-helpers)
> (global-semantic-idle-scheduler-mode 1)
> (global-semantic-idle-completions-mode 1)
> (global-semantic-idle-summary-mode 1)
> (require 'semantic-sb nil t)
> (require 'semanticdb nil t)
> (add-to-list 'semanticdb-project-roots "~/workspace")
> (global-semanticdb-minor-mode 1)
> (semantic-add-system-include "/usr/include/" 'c-mode)
> (semantic-add-system-include "/usr/include/" 'c++-mode)
> (semantic-add-system-include "/usr/include/c++/" 'c++-mode)
> (setq-mode-local c-mode semanticdb-find-default-throttle '(project
> unloaded system recursive))
> (setq-mode-local c++-mode semanticdb-find-default-throttle '(project
> unloaded system recursive))
> (setq-mode-local java-mode semanticdb-find-default-throttle '(project
> unloaded system recursive))
> (when (require 'semantic-ia nil t)
>     (global-set-key [(control return)] 'semantic-ia-complete-symbol)
>     (global-set-key [(control shift return)] 'semantic-ia-complete-
> symbol-menu))
> (when (require 'eassist nil t)
>     (define-key c-mode-base-map [(control x) (t)] 'eassist-switch-h-
> cpp))
> (semantic-load-enable-excessive-code-helpers)
> (semantic-load-enable-guady-code-helpers)
> (which-func-mode t)
> (setq semanticdb-default-save-directory "~/tmp/semantic")
> (custom-set-variables
>  '(global-semantic-stickyfunc-mode nil nil (semantic-util-modes))
>  '(semantic-idle-scheduler-idle-time 3)
> )
> (setq semantic-load-turn-everything-on t)
> (require 'semantic-load)
> (global-semantic-show-unmatched-syntax-mode -1)
>
> Could someone please share their semantic configuration and the steps
> required to get it up and running?
>
> Thanks a lot,
>
> -Etay

-- 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-01 14:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-01  5:41 Up and running with semantic etay.meiri
2008-10-01 14:17 ` Richard Riley

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.