EMACS: windmove change
This commit is contained in:
parent
b5a683f8b3
commit
1377acf25f
1 changed files with 3 additions and 4 deletions
|
@ -378,6 +378,9 @@
|
||||||
("gnu" . "http://elpa.gnu.org/packages/")
|
("gnu" . "http://elpa.gnu.org/packages/")
|
||||||
("marmalade" . "http://marmalade-repo.org/packages/")))
|
("marmalade" . "http://marmalade-repo.org/packages/")))
|
||||||
|
|
||||||
|
;;-----[ Windmove ]------------------------------------------------------
|
||||||
|
(windmove-default-keybindings 'meta)
|
||||||
|
|
||||||
;;-----[ Misc ]----------------------------------------------------------
|
;;-----[ Misc ]----------------------------------------------------------
|
||||||
(defun oni/reload-buffer
|
(defun oni/reload-buffer
|
||||||
(interactive)
|
(interactive)
|
||||||
|
@ -427,10 +430,6 @@
|
||||||
(global-set-key "\C-m" 'newline-and-indent)
|
(global-set-key "\C-m" 'newline-and-indent)
|
||||||
(global-set-key (kbd "C-x n r") 'narrow-to-region)
|
(global-set-key (kbd "C-x n r") 'narrow-to-region)
|
||||||
(global-set-key [f5] 'oni/reload-buffer)
|
(global-set-key [f5] 'oni/reload-buffer)
|
||||||
(global-set-key [M-left] 'windmove-left)
|
|
||||||
(global-set-key [M-right] 'windmove-right)
|
|
||||||
(global-set-key [M-up] 'windmove-up)
|
|
||||||
(global-set-key [M-down] 'windmove-down)
|
|
||||||
|
|
||||||
(add-hook 'before-save-hook 'oni/before-save-hook)
|
(add-hook 'before-save-hook 'oni/before-save-hook)
|
||||||
(add-hook 'after-save-hook 'oni/after-save-hook)
|
(add-hook 'after-save-hook 'oni/after-save-hook)
|
||||||
|
|
Loading…
Reference in a new issue