From: Stefan Bund Date: Tue, 7 May 2013 11:05:47 +0000 (+0200) Subject: alternative keybindings for text mode emacs X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=86a8a14b66b27727a503df09b7e0ca1198431660;p=emacs-init.git alternative keybindings for text mode emacs --- diff --git a/setup/windmove.el b/setup/windmove.el index e463ba0..3793802 100644 --- a/setup/windmove.el +++ b/setup/windmove.el @@ -1,5 +1,12 @@ (require 'windmove) -(global-set-key (kbd "S-") 'windmove-left) -(global-set-key (kbd "S-") 'windmove-right) -(global-set-key (kbd "S-") 'windmove-up) -(global-set-key (kbd "S-") 'windmove-down) + +(if window-system + (progn + (global-set-key (kbd "S-") 'windmove-left) + (global-set-key (kbd "S-") 'windmove-right) + (global-set-key (kbd "S-") 'windmove-up) + (global-set-key (kbd "S-") 'windmove-down)) + (global-set-key (kbd "C-c ") 'windmove-left) + (global-set-key (kbd "C-c ") 'windmove-right) + (global-set-key (kbd "C-c ") 'windmove-up) + (global-set-key (kbd "C-c ") 'windmove-down))