summaryrefslogtreecommitdiff
path: root/lisp/init-keybindings.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-01-26 01:59:44 -0500
committerKyle Meyer <kyle@kyleam.com>2014-01-26 01:59:44 -0500
commit7869360008d87ca4b459c703f4894625dd8181cc (patch)
treeb0f3f50ae2c309056883e03848abb3e1e4cb9b1e /lisp/init-keybindings.el
parent47e1d90700105f6b0f0550d7632a22b3fe81acb9 (diff)
downloademacs.d-7869360008d87ca4b459c703f4894625dd8181cc.tar.gz
Follow Purcell's emacs.d structure
User init files are added using provide/require. https://github.com/purcell/emacs.d
Diffstat (limited to 'lisp/init-keybindings.el')
-rw-r--r--lisp/init-keybindings.el30
1 files changed, 30 insertions, 0 deletions
diff --git a/lisp/init-keybindings.el b/lisp/init-keybindings.el
new file mode 100644
index 0000000..70ad6b3
--- /dev/null
+++ b/lisp/init-keybindings.el
@@ -0,0 +1,30 @@
+;; Keybindings that don't go with other topics
+
+(global-set-key (kbd "C-x \\") 'align-regexp)
+(global-set-key (kbd "C-x K") 'kill-buffer-and-window)
+
+;; Overrides `suspend-emacs' (which is also bound to C-x C-z).
+(global-set-key (kbd "C-z") 'zap-to-char)
+(global-unset-key (kbd "M-z"))
+
+(global-set-key (kbd "C-'") 'backward-kill-word)
+
+(define-key replace-map "s" 'query-replace)
+(define-key replace-map "S" 'replace-string)
+(define-key replace-map "r" 'query-replace-regexp)
+(define-key replace-map "R" 'replace-regexp)
+
+(define-key insert-map "t" 'km/todo-comment)
+
+(define-key insert-map "i" 'indent-relative)
+
+(define-key multiple-cursors-map "l" 'mc/edit-lines)
+(define-key multiple-cursors-map "n" 'mc/mark-next-like-this)
+(define-key multiple-cursors-map "p" 'mc/mark-previous-like-this)
+(define-key multiple-cursors-map "a" 'mc/mark-all-like-this)
+
+(global-set-key (kbd "C-;") 'er/expand-region)
+
+(define-key external-map "s" 'shell-command)
+
+(provide 'init-keybindings)