Skip to content

evil-define-key' can no longer bind key in gtags-mode-map' #130

Open
@TheBB

Description

Originally reported by: York Zhao (Bitbucket: york, GitHub: york)


Here is all in .eamcs

(require 'evil)
(evil-mode 1)

(require 'gtags)

(eval-after-load 'gtags
  '(progn
     ;; gtags-mode
     (evil-define-key 'motion gtags-mode-map
       "\C-]" 'gtags-find-tag-from-here)
     (evil-define-key 'normal gtags-mode-map
       "\C-t" 'gtags-pop-stack)))

Open a C++ file (or any file), type "M-x gtags-mode". Type "C-h k C-]" and I suppose to see
the key being binded to gtags-find-tag-from-here' but it's not, what it shows is still the old binding evil-jump-to-tag'. Same thing happens if you type "C-h
k C-t". This used to be working for me, I have no idea why it just stops working
anymore. Even last night it worked for awhile, nothing has changed but it just
never works.


Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions