I'm trying to make a trivial function that simply transposes chars backwards.
This is what I got so far:
(defun jd:backward-transpose-chars ()
(interactive)
(transpose-chars -1))
(define-key global-map (kbd "<C-y>") '(transpose-chars))
(define-key global-map (kbd "<C-S-y>") '(jd:backward-transpose-chars))
But it gives me the error:
Debugger entered--Lisp error: (wrong-type-argument commandp (jd:backward-transpose-chars))