Skip to content

Commit

Permalink
evilified: rebind SPC to '
Browse files Browse the repository at this point in the history
  • Loading branch information
syl20bnr committed Sep 30, 2015
1 parent f62eb37 commit 22e1f65
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions core/core-evilified-state.el
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,12 @@ Each pair KEYn FUNCTIONn is defined in MAP after the evilification of it."
"Return a new event for the evilified EVENT."
(when event
(cond
;; space
((equal event 32) nil)
;; C-g (cannot remap C-g)
((equal event ?\a) nil)
((equal event ?\a) nil) ; C-g (cannot remap C-g)
((equal event 32) ?') ; space
((equal event ?/) ?\\)
((equal event ?:) ?|)
((and (<= ?a event) (<= event ?z)) (- event 32))
;; don't shadow C-g, G is mapped directly to C-S-g
((equal event ?G) (+ (expt 2 25) ?\a))
((equal event ?G) (+ (expt 2 25) ?\a)) ; G is mapped directly to C-S-g
((and (<= ?A event) (<= event ?Z)) (- event 64))
((and (<= 1 event) (<= event 26)) (+ (expt 2 25) event)))))

Expand Down

0 comments on commit 22e1f65

Please sign in to comment.