redguardtoo / emacs.d

Fast and robust Emacs setup.
http://blog.binchen.org
GNU General Public License v3.0
2.39k stars 619 forks source link

Question about replace default ctags path. #1041

Closed eslrahc-swa closed 1 year ago

eslrahc-swa commented 1 year ago

Hey there, I recently run into an issue where:

Failed to create tags file. Error=exited abnormally with code 1
 CLI=/usr/bin/ctags  .....

I use M1 chip macbook pro and it has default ctags under /usr/bin/ctags whereas I want to adopt /opt/homebrew/bin/ctags instead

just want to know if there are some workaround to specify executable myself.

redguardtoo commented 1 year ago

(setq counsel-etags-ctags-program "/whatever-path/ctags")

eslrahc-swa commented 1 year ago

Thanks for the help, I installed ctags using https://github.com/universal-ctags/homebrew-universal-ctags and set (setq counsel-etags-ctags-program "/opt/homebrew/bin/ctags") but when I ctags, it shows something like

 No tag is found. Grep "xxxxx" at xxxxxxx (7.6 seconds): 

How that might happen? Am I missing someting?

eslrahc-swa commented 1 year ago

never mind, I figured myself.