possible bug (or my mistake ;-)

damien.thiriet77 damien.thiriet77 at laposte.net
Fri Oct 14 10:49:27 CEST 2011


Hello,


I have discovered yesterday evil. I will know be able to benefit both auctex power and vim ergonomy. Since I 
never tried Viper nor Vimproved, I prefer starting with evil but got some trouble with remapping keys in order to 
feet to my own version of bépo (french dvorak). Here is a piece of my .emacs:

(require 'evil)
(evil-mode 1)
;adaptation des touches à mon bépo

(define-key evil-normal-state-map "h" 'evil-change)
(define-key evil-normal-state-map "H" 'evil-change-line)
(define-key evil-normal-state-map "T" 'evil-join)
(define-key evil-normal-state-map "l" 'evil-replace)
(define-key evil-normal-state-map "L" 'evil-replace-state)
(define-key evil-normal-state-map "k" 'evil-substitute)
(define-key evil-normal-state-map "K" 'evil-change-whole-line)
(define-key evil-motion-state-map "b" 'evil-beginning-of-line)
(define-key evil-motion-state-map "é" 'evil-end-of-line)
(define-key evil-motion-state-map "è" 'evil-backward-word-begin)
(define-key evil-motion-state-map "È" 'evil-backward-WORD-begin)
(define-key evil-motion-state-map "c" 'evil-backward-char)
(define-key evil-motion-state-map "C" 'evil-window-top)
(define-key evil-motion-state-map "t" 'evil-next-line)
(define-key evil-motion-state-map "s" 'evil-previous-line)
(define-key evil-motion-state-map "r" 'evil-forward-char)
(define-key evil-motion-state-map "R" 'evil-window-bottom)
(define-key evil-motion-state-map "j" 'evil-find-char-to)
(define-key evil-motion-state-map "J" 'evil-find-char-to-backward)

;;; untree: dépendance d’evil-----------------------------------------
(require 'undo-tree)
;;if you want replace the standard Emacs' undo system with the undo-tree-mode,
uncomment the next line (global-undo-tree-mode)

the trouble is that some remapping work, others don't: for instance c, s and r are still acting as change, 
substitute and replace instead of left, up and right (t does down). h, k i l are remaped as as change, substitute 
and replace. This is kind astonishing. Did I do something wrong or is it an issue with evil-forward-char and so on?

Thanks for your great job,


Damien Thiriet

PS: I couldn’t check if this mail is plain text or html, please tell me if there are some troubles with coding

Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net



More information about the implementations-list mailing list