Permalink
Browse files

Add command aliases

  • Loading branch information...
jimeh committed Aug 26, 2012
1 parent 49c56e6 commit a25f9ad5564ba6d02457e29bdb186b2f75a6f812
Showing with 29 additions and 0 deletions.
  1. +28 −0 aliases.el
  2. +1 −0 init.el
View
@@ -0,0 +1,28 @@
+;;
+;; Setup a few global command aliases
+;;
+
+;; Text Manipulation
+(defalias 'rs 'replace-string)
+(defalias 'qr 'query-replace-regexp)
+(defalias 'al 'align-regexp)
+(defalias 'sl 'sort-lines)
+(defalias 'rr 'reverse-region)
+
+(defalias 'lml 'list-matching-lines)
+(defalias 'dml 'delete-matching-lines)
+(defalias 'dnml 'delete-non-matching-lines)
+(defalias 'dtw 'delete-trailing-whitespace)
+
+;; Buffer Manipulation
+(defalias 'rb 'revert-buffer)
+
+;; Emacs Lisp
+(defalias 'eb 'eval-buffer)
+(defalias 'er 'eval-region)
+(defalias 'ed 'eval-defun)
+(defalias 'eis 'elisp-index-search)
+(defalias 'lf 'load-file)
+
+;; Dired
+(defalias 'wd 'wdired-change-to-wdired-mode)
View
@@ -20,6 +20,7 @@
(load-file (config-path "behavior.el"))
(load-file (config-path "appearance.el"))
(load-file (config-path "keybindings.el"))
+(load-file (config-path "aliases.el"))
(load-file (config-path "remember.el"))
(load-file (config-path "project-definitions.el"))

0 comments on commit a25f9ad

Please sign in to comment.