customize ex commands

Michael Markert markert.michael at
Sun Dec 18 22:29:41 CET 2011

Hi Jim,

On 18 Dec 2011, Jim Green wrote:

> I added  (local-set-key ":A" 'eassist-switch-h-cpp) to the .emacs but
> it doesn't work..

Have a look at evil-maps.el.

For the specific problem you need:

#+begin_src emacs-lisp

(evil-ex-define-cmd "A" 'eassist-switch-h-cpp)

;; or

(evil-ex-define-cmd "alternate" 'eassist-switch-h-cpp)
(evil-ex-define-cmd "A" "alternate")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : 

More information about the implementations-list mailing list