pycscope: ability to configure the binary name
By default, cscope uses the "pycscope" command. This new variable allow one to specify another binary name, e.g: python3-pycscope.
This commit is contained in:
parent
debaff6ca6
commit
f97c0ae6c1
|
@ -1313,6 +1313,7 @@ Other:
|
|||
- Key bindings:
|
||||
- Fixed key binding ~g C~ (thanks to dubnde)
|
||||
- New ~SPC m g =~ to find assignments to a symbol (thanks to dubnde)
|
||||
- Make pycscope binary configurable (thanks to Gonéri Le Bouder)
|
||||
**** CSharp
|
||||
- Improvements:
|
||||
- Enabled =flycheck= by default (thanks to Saulius Menkevičius)
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
;;; config.el --- cscope configuration File
|
||||
;;
|
||||
;; Copyright (c) 2019 Sylvain Benner & Contributors
|
||||
;;
|
||||
;; This file is not part of GNU Emacs.
|
||||
;;
|
||||
;;; License: GPLv3
|
||||
|
||||
(defvar pycscope-binary "pycscope"
|
||||
"The name of the pycscope binary.")
|
|
@ -37,7 +37,8 @@
|
|||
(cscope//safe-project-root)))))
|
||||
(let ((default-directory directory))
|
||||
(shell-command
|
||||
(format "pycscope -R -f '%s'"
|
||||
(format "%s -R -f '%s'"
|
||||
pycscope-binary
|
||||
(expand-file-name "cscope.out" directory))))))))
|
||||
|
||||
(defun cscope/init-helm-cscope ()
|
||||
|
|
Loading…
Reference in New Issue