From 37c2e25acc3261f6aa74488e68eeeeb09cb53624 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Wed, 21 Sep 2016 23:13:24 +0800 Subject: [PATCH] emacs - mapping C-o C-h/jkl switch windows --- emacs.d/config.org | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/emacs.d/config.org b/emacs.d/config.org index cabe148..569e1e3 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -252,8 +252,8 @@ Fix the font alignment issue when both Chinese and English hybird in org-mode ta ;; Setup font size based on emacs-font-size-pair (set-font emacs-english-font emacs-cjk-font '(13 . 16)) - (global-set-key (kbd "s-=") 'increase-emacs-font-size) - (global-set-key (kbd "s--") 'decrease-emacs-font-size) + ;; (global-set-key (kbd "s-=") 'increase-emacs-font-size) + ;; (global-set-key (kbd "s--") 'decrease-emacs-font-size) #+END_SRC @@ -2752,8 +2752,8 @@ Use =ESC= to exit minibuffer. Also I map =Super-h= the same as =C-g= (global-set-key (kbd "s-p") 'persp-prev) (global-set-key (kbd "s-;") 'persp-switch-last) - ;; (global-set-key (kbd "s-=") 'text-scale-increase) - ;; (global-set-key (kbd "s--") 'text-scale-decrease) + (global-set-key (kbd "s-=") 'text-scale-increase) + (global-set-key (kbd "s--") 'text-scale-decrease) ;; (global-set-key (kbd "s-u") 'undo-tree-visualize) @@ -2875,7 +2875,7 @@ Most use =C-o C-o= to switch buffers; =C-o x, v= to split window; =C-o o= to del ;; Windows undo - redo ("u" (progn (winner-undo) (setq this-command 'winner-undo)) "undo") ("r" (progn (winner-redo) (setq this-command 'winner-redo)) "redo") - + ;; ibuffer, dired, eshell, bookmarks ;; ("C-i" other-window nil :exit t) ("C-b" ido-switch-buffer nil :exit t) @@ -2895,10 +2895,10 @@ Most use =C-o C-o= to switch buffers; =C-o x, v= to split window; =C-o o= to del ;; quit ("q" nil "cancel") ("" nil) - ("C-h" nil nil :exit t) - ("C-j" nil nil :exit t) - ;; ("C-k" nil :exit t) - ("C-l" nil nil :exit t) + ("C-h" windmove-left nil :exit t) + ("C-j" windmove-down nil :exit t) + ("C-k" windmove-up :exit t) + ("C-l" windmove-right nil :exit t) ("C-;" nil nil :exit t) ("n" nil nil :exit t) ("[" nil nil :exit t) -- 2.11.0