possible bug (or my mistake ;-)

Félix Sipma felix.sipma at gmail.com
Fri Oct 14 12:04:43 CEST 2011


Hi!

I also use "bépo" and I confirm this bug. In order to get it work I had
to remap each "normal key" to "nil" before mapping it to a "motion key".

Ex:

(define-key evil-normal-state-map "c" nil)
(define-key evil-motion-state-map "c" 'backward-char)


Félix

 


On 14/10/2011 10:49, damien.thiriet77 wrote:
> 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
> 
> _______________________________________________
> implementations-list mailing list
> implementations-list at lists.ourproject.org
> https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list

-- 
Félix
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : https://lists.ourproject.org/pipermail/implementations-list/attachments/20111014/476d3f6c/attachment.pgp 


More information about the implementations-list mailing list