From a1606cb96bab281660253b8431d57ae34d22c000 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. --- 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