From a4d5d25765ba187d8885033e21c7c03c7062d123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Codru=C8=9B=20Constantin=20Gu=C8=99oi?= Date: Mon, 10 Apr 2017 14:26:47 +0300 Subject: [PATCH] Documents conflict resolution between ctags and etags --- layers/+tags/gtags/README.org | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/layers/+tags/gtags/README.org b/layers/+tags/gtags/README.org index e2c525598..e8e84fd45 100644 --- a/layers/+tags/gtags/README.org +++ b/layers/+tags/gtags/README.org @@ -10,6 +10,7 @@ - [[#install-recommended-dependencies][Install recommended dependencies]] - [[#install-with-recommended-features][Install with recommended features]] - [[#configure-your-environment-to-use-pygments-and-ctags][Configure your environment to use pygments and ctags]] + - [[#conflict-between-ctags-and-emacss-etags-binary][Conflict between =ctags= and emacs's =etags= binary]] - [[#emacs-configuration][Emacs Configuration]] - [[#disabling-by-default][Disabling by default]] - [[#usage][Usage]] @@ -107,6 +108,24 @@ with sh/ksh: echo export GTAGSLABEL=pygments >> .profile #+end_src +*** Conflict between =ctags= and emacs's =etags= binary +If you installed =emacs= from source after =ctags=, your original =ctags= binary +is probably replaced by emacs's =etags=. To get around this you will need to +configure =emacs= as following before installing: + +#+begin_src sh + ./configure --program-transform-name='s/^ctags$/ctags.emacs/' +#+end_src + +To check if you have the correct version of =ctags= execute: + +#+begin_src sh + ctags --version | grep Exuberant +#+end_src + +If yo do not get any output then it means you have the wrong =ctags= and must +install it again. + ** Emacs Configuration To use this configuration layer, add it to your =~/.spacemacs=. You will need to add =gtags= to the existing =dotspacemacs-configuration-layers=.