From 2aab6a592c2cbef0a329fc16a745acac618901cf Mon Sep 17 00:00:00 2001 From: Lars Tveito Date: Tue, 17 Mar 2015 15:32:21 +0100 Subject: [PATCH] Fixed tidy-bug --- emacs-init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emacs-init.el b/emacs-init.el index 8becfe8..bd6dd87 100644 --- a/emacs-init.el +++ b/emacs-init.el @@ -119,7 +119,7 @@ called autosaves located wherever your .emacs.d/ is located.") (end (if (region-active-p) (region-end) (point-max)))) (whitespace-cleanup) (indent-region beg end nil) - - (untabify beg end))) + (untabify (if (region-active-p) (region-beginning) (point-min)) + (if (region-active-p) (region-end) (point-max))))) ;; bindes the tidy-function to C-TAB (global-set-key (kbd "") 'tidy)