I have rebound "SPC m c" so it opens a file (from How to a create keybinding to open a particular file?):
(spacemacs/set-leader-keys "mc" (lambda () (interactive) (find-file "~/capture.org")))
And it opens the file as intended, because spacemacs/set-leader-keys is for binding with the leader key SPC.
Now I want to bind the same thing to ", c". How to bind a key when the leader key is comma?
I am using Emacs 25.2.1 with Evil Spacemacs on Linux.
UPDATE_1
I put this in ~/.spacemacs but then Emacs would say "Spacemacs encountered an error while loading your ~/.spacemacs file.":
(define-key evil-normal-state-map ",c" (lambda () (interactive) (find-file "~/capture.org")))
I put this in ~/.spacemacs but it had no effect (", c" opened agenda dispatcher as usual):
(with-eval-after-load 'evil-maps
(define-key evil-normal-state-map ",c" (lambda () (interactive) (find-file "~/capture.org"))))