Sorry for what is probably an easy question for an experienced emacs user, I'm having a really hard time figuring out how to switch the default bindings for the ESC and "`" keys.
This is what I have so far:
(defun set-my-key-bindings ()
;; This next line works, makes ` the escape key in insert node.
(define-key evil-insert-state-map (kbd "`") 'evil-normal-state))
;; This doesn't do anything, but I want it to insert a "`" character when the escape key is pressed while in insert mode.
(define-key evil-insert-state-map (kbd "ESC") (lambda () (interactive) (insert "`")))
Should I be approaching this differently? It seems everything I'm finding always binds a key to a emacs symbol, but the best I can find is the (self-insert-command) when I do C-H k "`" while in insert mode.
Any help greatly appreciated!!