Configure Emacs cscope in Ubuntu

Source: Internet
Author: User

Apt-Get install cscope

Apt-Get install cscope-El

CP/usr/share/Emacs/Site-lisp/cslisp/xcscope. El ~ /. Emacs. d/Site-lisp/

 

;;LOAD_PATH                                                                                                                                                   (add-to-list ‘load-path‘ "~/.emacs.d/site-lisp")(add-to-list ‘load-path‘ "/usr/share/emacs/site-lisp/")(require ‘xcscope)(define-key global-map [(control f3)] ‘cscope-set-initial-directory)(define-key global-map [(control f4)] ‘cscope-unset-initial-directory)(define-key global-map [(control f5)] ‘cscope-find-this-symbol)(define-key global-map [(control f6)] ‘cscope-find-global-definition)(define-key global-map [(control f7)] ‘cscope-find-global-definition-no-prompting)(define-key global-map [(control f8)] ‘cscope-pop-mark)(define-key global-map [(control f9)] ‘cscope-next-symbol)(define-key global-map [(control f10)] ‘cscope-next-file)(define-key global-map [(control f11)] ‘cscope-prev-symbol)(define-key global-map [(control f12)] ‘cscope-prev-file)(define-key global-map [(meta f9)] ‘cscope-display-buffer)(define-key global-map [(meta f10)] ‘cscope-display-buffer-toggle)
Index creation: csbench-indexer-R3 shortcut:; * keybindings:
;;
; All keybindings use the "C-c s" prefix, but are usable only while
; Editing a source file, or in the cs1_results Buffer:
;;
; C-c s find symbol.
; C-C s d find global definition.
; C-c s g find global definition (alternate binding ).
; C-c s g find global definition without prompting.
; C-c s c find functions calling a function.
; C-c s c find called functions (list functions called
; From a function ).
; C-c s t find text string.
; C-C s e find egrep pattern.
; C-C s f find a file.
; C-c s I find files # Including a file.
;;
; These pertain to navigation through the search results:
;;
; C-C s B display * cscope * buffer.
; C-C s B auto display * cscope * buffer toggle.
; C-c s n next symbol.
; C-c s n next file.
; C-c s p previous symbol.
; C-c s p previous file.
; C-c s u pop mark.
;;
; These pertain to setting and unsetting the variable,
; 'Csbench-Initial-directory', (location searched for the csbench Database
; Directory ):
;;
; C-c s a set initial directory.
; C-c s a unset initial directory.
;;
; These pertain to cs1_database maintenance:
;;
; C-c s l create list of files to index.
; C-c s I create list and index.
; C-c s e edit list of files to index.
; C-c s w locate this buffer's cs1_directory
; ("W" --> "where ").
; C-c s locate this buffer's cs1_directory.
; (Alternate binding: "S" --> "show ").
; C-c s t locate this buffer's cs1_directory.
; (Alternate binding: "T" --> "tell ").
; C-c s d Dired this buffer's directory.

Configure Emacs cscope in Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.