Swap key directly in emacs instead of doing it with xmodmap

This commit is contained in:
syl20bnr 2013-07-10 14:26:02 -04:00 committed by sbenner
parent 65e461ea53
commit f38ff189e2

View file

@ -1,6 +1,13 @@
;; Regular shortcuts ==========================================================
;; emacs ----------------------------------------------------------------------
;; switch meta for super in order to play nicely with i3wm which I use with
;; alt modifier.
(setq x-super-keysym 'meta)
(setq x-meta-keysym 'super)
;; evil -----------------------------------------------------------------------
;; easier toggle for emacs-state
(evil-set-toggle-key "s-`")
;; returns to normal mode
(define-key evil-insert-state-map "f" 'fd-to-normal-mode)
(define-key evil-visual-state-map "f" 'fd-to-normal-mode)