I want gj
keys to execute function org-next-visible-heading
(in evil normal mode). How should I do it in Spacemacs?
I was reading documentation and googling but I can't figure it out. What I tried already is adding these keys to different functions/key maps but nothing works. I tried to add these lines (one by one):
(define-key org-mode-map "gj" 'org-next-visible-heading)
(evil-define-key 'normal global-map "gj" 'org-next-visible-heading)
(define-key evil-normal-state-map "gj" 'org-next-visible-heading)
(spacemacs/set-leader-keys-for-major-mode 'org-mode "gj" 'org-next-visible-heading)
(spacemacs/set-leader-keys "gj" 'org-next-visible-heading)
(define-key evil-normal-state-map "gj" 'org-next-visible-heading)
(define-key evil-org-mode-map "gj" 'org-next-visible-heading)
in my ~/.spacemacs
at the end of section dotspacemacs/user-config
but it doesn't work.