Hot answers tagged

5

Hope this clears up the confusion .. Non-emacs software GNU Global (gtags + global executables) - A software for generating tags, like Universal ctags. I actually use gtags for binary database generation but have configured it to use ctags as backend because ctags supports tag parsing for many more languages. It is mandatory to install GNU Global if you ...


4

I would create a symbolic link to project B in one of the directories on project A and run gtags in both the projects (as you might also need to use tags for Project B only). There's also another way to solve this problem; here's more info from global documentation: If you want to locate symbols that are not defined in the source tree, then you can ...


2

M-. is looked up in loads of keymaps and a possible command to use is found in evil-normal-state-map. The easiest way around this is unbinding it there to allow Emacs to continue looking it up in other possible keymaps: (eval-after-load 'evil-maps '(define-key evil-normal-state-map (kbd "M-.") nil))


2

kaushalmodi's answer is almost perfect, but it doesn't solve the problem at hand. I suggest you to run gtags on each project directory say ~/projects/{a,b} cd ~/projects/a gtags cd ../b gtags Now the trick is t use the GTAGSLIBPATH variable as shown in Global documentation so you can use global -T global -T <function_symbol> You should see global ...


2

This worked. (add-hook 'ggtags-find-tag-hook #'ccm-position-cursor)


2

Yes, you want to use .dir-locals.el and assuming the enable/disable commands you need are functions, its pseudo-variable eval. If you have lsp-mode globally enabled, add something like this to the .dir-locals.el file in the root of your "odd" project: ;;; Directory Local Variables ;;; For more information see (info "(emacs) Directory Variables") ;;; ...


1

You need to execute helm-gtags-update-tags to update the tag files. Quote README: Update TAG file. Default is update only current file, You can update all files with C-u prefix.


1

That would be ggtags-find-reference, bound by default to M-]. Also, using the "standard" ggtags-find-tag-dwim (M-.) on a function's prototype should show you its call sites.


1

Found what what it was, I have two languages installed. By default language is changed with alt+shift, this coincide with emacs's M-* To set language change to use only left alt+left shift in xubuntu I did settings --> keyboard --> layout then set it in "Change layout option"


1

IIRC gtags-mode ships as part of GNU Global and gives a basic set of commands and key bindings for using Global. ggtags does much the same thing but is a much more comprehensive package with way more features. I initially found some of the ggtags keybindings to be a little confusing (especially after doing a find tag operation) but in the long run it's ...


1

The following code demonstrates the direct use of semantic for jumping to tags. Make sure you configured semantic-c-dependency-system-include-path right. The following code displays the tag in another buffer. You can adapt the code to jump to the tag if you really want that. There should already exist something like that. But, I did not find it. (defun ...


1

Regarding argument expansion, you should file a feature request at company-jedi (or company-anaconda!). And about files generated by gtags, I don't think you want that. You'll have to teach every tool that uses them about the "one place" directory. But setting GTAGSLIBPATH might help with that.


1

I have followed the directions at this blog which supplements the C ide stuff by Tudho to install rtags and irony (as suggested by Dmitry) and it provides the features I asked for. I'll expand with a summary of steps I had to take to get it all working on a Mac: Install a recent version of the clang compiler with macports (likely optional) Set environment ...


1

Similar questions have been asked so many times. Basically you want other minor-mode's keybindings take priority. No one can answer this question better than EVIL developer himself. Here is the code ;; @see https://bitbucket.org/lyro/evil/issue/511/let-certain-minor-modes-key-bindings (eval-after-load 'ggtags '(progn (evil-make-overriding-map ggtags-...


Only top voted, non community-wiki answers of a minimum length are eligible