This is part of the Emacs Starter Kit.
Key Bindings.
(global-set-key (kbd "M-a") 'align-regexp)
(global-set-key (kbd "M-/") 'hippie-expand)
(define-key global-map (kbd "C-+") 'text-scale-increase)
(define-key global-map (kbd "C--") 'text-scale-decrease)
(global-set-key (kbd "C-s") 'isearch-forward-regexp)
(global-set-key (kbd "C-r") 'isearch-backward-regexp)
;; (global-set-key (kbd "C-o") 'find-file)
(global-set-key (kbd "C-x r") 'recentf-ido-find-file)
(global-set-key (kbd "C-x C-r") 'recentf-ido-find-file)
(global-set-key (kbd "C-c t") 'sk-touch)
(global-set-key (kbd "C-x C-b") 'ibuffer)
(global-set-key (kbd "M-r") 'revert-buffer)
(global-set-key (kbd "C-x C-k") 'kill-this-buffer)
;;(windmove-default-keybindings) ;; Shift+direction
(global-set-key (kbd "<C-tab>") 'other-window)
(global-set-key (kbd "C-:") 'sk-toggle-window-split)
(global-set-key (kbd "C-l") 'goto-line)
(global-set-key (kbd "C-x ^") 'join-line)
(defun backward-kill-line (arg)
"Kill chars backward until encountering the end of a line."
(interactive "p")
(kill-line 0))
(global-set-key (kbd "C-u") 'backward-kill-line)
(defun move-line-up ()
(interactive)
(transpose-lines 1)
(forward-line -2))
(defun move-line-down ()
(interactive)
(forward-line 1)
(transpose-lines 1)
(forward-line -1))
(global-set-key (kbd "M-<up>") 'move-line-up)
(global-set-key (kbd "M-<down>") 'move-line-down)
(global-set-key (kbd "RET") 'reindent-then-newline-and-indent)
(define-key isearch-mode-map (kbd "C-o")
(lambda () (interactive)
(let ((case-fold-search isearch-case-fold-search))
(occur (if isearch-regexp
isearch-string
(regexp-quote isearch-string))))))
(defalias 'redo 'undo-tree-redo)
(global-set-key (kbd "C-z") 'undo)
(global-set-key (kbd "C-&") 'redo)
(global-set-key (kbd "M-x") 'smex)
(global-set-key (kbd "C-c c") 'compile)
(global-set-key [f11] 'sk-toggle-fullscreen)
(global-set-key (kbd "M-m") 'multi-term)