diff options
author | rekado <rekado@elephly.net> | 2014-09-01 11:30:08 +0200 |
---|---|---|
committer | rekado <rekado@elephly.net> | 2014-09-01 11:30:08 +0200 |
commit | be2ed473e928f8c7cb3e38063ecc77d4ec6cd744 (patch) | |
tree | 4154226b1d7180b80d0041e30329dea02e3ad5d1 /init.el | |
parent | 6a51d0e7d10c591415632f874d735408627ba43b (diff) |
move global key bindings to the same place
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 43 |
1 files changed, 23 insertions, 20 deletions
@@ -37,30 +37,12 @@ (setq evil-default-cursor '("white" box)) (set-background-color "#181818") -;; Swap C-t and C-x, so it's easier to type on Dvorak layout -(keyboard-translate ?\C-t ?\C-x) -(keyboard-translate ?\C-x ?\C-t) - -;; kill current buffer -(global-set-key (kbd "C-x C-k") (lambda () - (interactive) - (kill-buffer (current-buffer)))) -(global-set-key (kbd "C-c r") 'replace-regexp) - ; smart mode line (setq sml/theme 'respectful) (sml/setup) -(require 'smex) -(smex-initialize) -(global-set-key (kbd "M-x") 'smex) -(global-set-key (kbd "M-X") 'smex-major-mode-commands) -(global-set-key (kbd "<menu>") 'smex) -(global-set-key (kbd "S-<menu>") 'smex-major-mode-commands) -;; expand region -(global-set-key (kbd "M-@") 'er/expand-region) ; C-d on an empty line in the shell terminates the process. (defun comint-delchar-or-eof-or-kill-buffer (arg) @@ -242,12 +224,33 @@ (global-set-key (kbd "C-.") 'zoom-in) (global-set-key (kbd "C-,") 'zoom-out) +;; easier way to jump to other window +(global-set-key (kbd "M-o") 'other-window) + +(require 'smex) +(smex-initialize) +(global-set-key (kbd "M-x") 'smex) +(global-set-key (kbd "M-X") 'smex-major-mode-commands) +(global-set-key (kbd "<menu>") 'smex) +(global-set-key (kbd "S-<menu>") 'smex-major-mode-commands) + +;; expand region +(global-set-key (kbd "M-@") 'er/expand-region) + +;; Swap C-t and C-x, so it's easier to type on Dvorak layout +(keyboard-translate ?\C-t ?\C-x) +(keyboard-translate ?\C-x ?\C-t) + +;; kill current buffer +(global-set-key (kbd "C-x C-k") (lambda () + (interactive) + (kill-buffer (current-buffer)))) +(global-set-key (kbd "C-c r") 'replace-regexp) + (require 'shell-switcher) (setq shell-switcher-mode t) (add-hook 'eshell-mode-hook 'shell-switcher-manually-register-shell) -(global-set-key (kbd "M-o") 'other-window) - (load "email.el") (require 'rekado-mode) (rekado-mode 1) |