From fe3a6566c715cb00cfa050f5313be2613186bd75 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Sat, 14 May 2011 14:47:51 -0500 Subject: Moved 3rd party libs to separate dir and added optional scion haskell support. --HG-- rename : hoersten-align-with-spaces.el => align-with-spaces.el rename : hoersten-pastebin-region.el => pastebin-region.el rename : color-theme-twilight.el => thirdparty/color-theme-twilight.el rename : pretty-mode.el => thirdparty/pretty-mode.el rename : vala-mode.el => thirdparty/vala-mode.el rename : zencoding-mode.el => thirdparty/zencoding-mode.el --- align-with-spaces.el | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 align-with-spaces.el (limited to 'align-with-spaces.el') diff --git a/align-with-spaces.el b/align-with-spaces.el new file mode 100644 index 0000000..cf0ad39 --- /dev/null +++ b/align-with-spaces.el @@ -0,0 +1,16 @@ +;; ~/.emacs.d/hoersten-align-with-spaces.el +;; Luke Hoersten + +(global-set-key (kbd "C-c a") 'align-with-spaces) +(defun align-with-spaces (beg end pattern) + "Align selected using only spaces for whitespace." + (interactive "r\nsAlign by: ") + (let ((indent-tabs-mode nil)) + (align-string beg end pattern 1) + (align-entire beg end) + (untabify beg end) + (indent-region beg end) + (whitespace-cleanup-region beg end))) + +(message "Loading align-with-spaces...done") +(provide 'align-with-spaces) -- cgit v1.2.3