Use xcscope with helm!
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md helm-scope.el added and readme updated Nov 29, 2013
helm-cscope.el Fixes #2 issue. Jan 10, 2015

README.md

helm-cscope

Use xcscope with helm! This is pretty straightforward port of anything-cscope.el from here

dependencies

  • cscope
  • helm (available on MELPA)
  • xcscope (available on MELPA)

install

  1. Install all dependencies
  2. Put helm-cscope.el in your load path: (add-to-list 'load-path "/<path to helm-cscope dir here>/")
  3. Add (require 'helm-cscope) to your .emacs

interactive functions

  • helm-cscope-find-symbol
  • helm-cscope-find-global-definition
  • helm-cscope-find-called-function
  • helm-cscope-find-calling-this-funtcion
  • helm-cscope-select (uses all of above sources)

example configuration

;; Enable helm-cscope-mode
(add-hook 'c-mode-hook 'helm-cscope-mode)
(add-hook 'c++-mode-hook 'helm-cscope-mode)
;; Set key bindings
(eval-after-load "helm-cscope"
  '(progn
     (define-key helm-cscope-mode-map (kbd "M-t") 'helm-cscope-find-symbol)
     (define-key helm-cscope-mode-map (kbd "M-r") 'helm-cscope-find-global-definition)
     (define-key helm-cscope-mode-map (kbd "M-g M-c") 'helm-cscope-find-called-function)
     (define-key helm-cscope-mode-map (kbd "M-g M-p") 'helm-cscope-find-calling-this-funtcion)
     (define-key helm-cscope-mode-map (kbd "M-s") 'helm-cscope-select)))