projects
/
dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
76851aa
)
emacs - mapping C-o C-h/jkl switch windows
author
Peng Li
<seudut@gmail.com>
Wed, 21 Sep 2016 15:13:24 +0000
(23:13 +0800)
committer
Peng Li
<seudut@gmail.com>
Wed, 21 Sep 2016 15:13:24 +0000
(23:13 +0800)
emacs.d/config.org
patch
|
blob
|
history
diff --git
a/emacs.d/config.org
b/emacs.d/config.org
index
cabe148
..
569e1e3
100644
(file)
--- 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))
;; 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
#+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-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)
;; (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")
;; 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)
;; 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")
("<ESC>" nil)
;; quit
("q" nil "cancel")
("<ESC>" 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)
("C-;" nil nil :exit t)
("n" nil nil :exit t)
("[" nil nil :exit t)