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:
Gonéri Le Bouder 2019-05-10 08:49:28 -04:00 committed by smile13241324
parent debaff6ca6
commit f97c0ae6c1
3 changed files with 13 additions and 1 deletions

View File

@ -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)

View File

@ -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.")

View File

@ -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 ()