Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I am using cedet with emacs. I tried using the cedet version in Debian but it has some bugs so I uninstalled that and downloaded the cvs version from <a href="http://sourceforge.net/projects/cedet/develop" rel="nofollow noreferrer">http://sourceforge.net/projects/cedet/develop</a></p> <p>I compiled it in my ~/tmp/emacs-stuff/ directory and then added the following lines to my ~/.emacs.d/custom.el file:</p> <hr> <pre><code> ;;needed if cedet is in a custom location (load-file "~/tmp/emacs-stuff/cedet/common/cedet.el") ;; Enable EDE (Project Management) features (global-ede-mode t) ;;to enable code folding (global-semantic-tag-folding-mode) ;; Enabling Semantic (code parsing, smart completion) features ;; (select only one) ;;(semantic-load-enable-minimum-features) ;;(semantic-load-enable-code-helpers) (semantic-load-enable-gaudy-code-helpers) ;;(semantic-load-enable-all-exuberent-ctags-support) (global-semantic-idle-scheduler-mode 1) ;The idle scheduler with automatically reparse buffers in idle time. (global-semantic-idle-completions-mode 1) ;Display a tooltip with a list of possible completions near the cursor. (global-semantic-idle-summary-mode 1) ;Display a tag summary of the lexical token under the cursor. ;;to work with my include files and cedet (semantic-add-system-include "~/include" 'c++-mode) (semantic-add-system-include "~/include" 'c-mode) ;;To use additional features for names completion, and displaying of information for tags & classes, ;; you also need to load the semantic-ia package. This could be performed with following command: (require 'semantic-ia) ;;to work with systme include files and gcc (require 'semantic-gcc) ;;integrate semantic with Imenu (defun my-semantic-hook () (imenu-add-to-menubar "TAGS")) (add-hook 'semantic-init-hooks 'my-semantic-hook) ;;load Semanticdb (require 'semanticdb) ;;(global-semanticdb-minor-mode 1) ;;working with tags ;; gnu global support (require 'semanticdb-global) (semanticdb-enable-gnu-global-databases 'c-mode) (semanticdb-enable-gnu-global-databases 'c++-mode) ;; ctags (require 'semanticdb-ectag) (semantic-load-enable-primary-exuberent-ctags-support) (defun my-semantic-hook () (imenu-add-to-menubar "TAGS")) (add-hook 'semantic-init-hooks 'my-semantic-hook) </code></pre> <hr> <p>This file gets called by my ~/.emacs file which the following line in it: (load-file "~/.emacs.d/custom.el")</p> <p>Now when you are typing a variable and press CTRL+SHIFT+ENTER, a menu of selections will come up with suggestions.</p> <p>Further, if you have set semantic-complete-inline-analyzer-idle-displayor-class variable to quote semantic-displayor-tooltip, a tooltip with suggestions will also come up after some idle time (1 or 2 seconds).</p> <p>For some short intro, see <a href="http://xtalk.msk.su/~ott/en/writings/emacs-devenv/EmacsCedet.html" rel="nofollow noreferrer">http://xtalk.msk.su/~ott/en/writings/emacs-devenv/EmacsCedet.html</a></p> <p>For Cedet docs, see: <a href="http://cedet.sourceforge.net/" rel="nofollow noreferrer">http://cedet.sourceforge.net/</a></p> <p>Good luck.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload