syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.68k stars 4.89k forks source link

gtags layer advertised keys missing #9604

Closed vigilancetech-com closed 4 years ago

vigilancetech-com commented 7 years ago

Description :octocat:

gtags layer advertised keys missing

Reproduction guide :beetle:

https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Btags/gtags#key-bindings

Observed behaviour: :eyes: :broken_heart:

not there (e.g. SPC m g c )

Expected behaviour: :heart: :smile:

key bindings should be there

System Info :computer:

Backtrace :paw_prints:

smile13241324 commented 7 years ago

Can you tell me for which programming mode you are missing the gtags jump commands? I have just tried that for clojure-mode and it worked as expected. I have also had a look at elisp-mode and also there were the respective gtags commands bound.

Do you have any errors in the message buffer when spacemacs is started? This could cause some missed bindings.

I have tried that all on develop

nishadsabnis commented 6 years ago

Just wanted to say I am seeing the exact same problem too, I am on OS-X and using the master branch.

I cannot see the keybindings when in c-mode. gtags layer documentation suggests that c-mode should be supported by default? I can confirm that in elisp-mode the key bindings do show up.

Maybe I am missing something, I am quite new to spacemacs. I can create another issue if that is preferred but since this one seemed similar I thought I should give my input here before I create another one. Thanks!

smile13241324 commented 6 years ago

@nishadsabnis @vigilancetech-com The problem you are having is that you are missing the C-C++ layer in your dotfile if this is missing only standard emacs C-mode stuff is defined which does not include the gtags or a major-mode menu.

Without it you only have standard emacs stuff defined.

nishadsabnis commented 6 years ago

Thanks @smile13241324 that resolves the issue for me. I can now see the keybindings after adding c-c++ to my layers. I'm sure this was in the documentation somewhere and I just missed it.

Either ways, I am really enjoying the consistency using spacemacs coming over from emacs and evil-mode with a shoddy config that was not maintainable. Thanks!

smile13241324 commented 6 years ago

@vigilancetech-com does that solve your issue too? In this case please consider closing this ticket.

@nishadsabnis your welcome :)

vinurs commented 6 years ago

Hi, i'am using the dev branch, and enable the c-c++ layer, but the keybindings seems missing (c/c++ :variables c-c++-enable-clang-support t) (gtags :variables gtags-enable-by-default t)

vinurs commented 6 years ago

it seems that it should add (spacemacs/helm-gtags-define-keys-for-mode 'c-mode) in the user-config section

vinurs commented 6 years ago

sorry, there is a misspell, c/c++ should be c-c++ layer

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!