From: Kennedy Clark Date: Sun, 24 May 2009 20:40:11 +0000 (+0000) Subject: Suggestion from Stefan Kangas about "un-indenting" code in Emacs (thanks, Stefan) X-Git-Tag: v5.8005~145 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=commitdiff_plain;h=325bc0fd9f3c14fc336ddc74fdaa42e18aa3b4fe Suggestion from Stefan Kangas about "un-indenting" code in Emacs (thanks, Stefan) --- diff --git a/lib/Catalyst/Manual/Tutorial/Appendices.pod b/lib/Catalyst/Manual/Tutorial/Appendices.pod index c8eb582..4004312 100644 --- a/lib/Catalyst/Manual/Tutorial/Appendices.pod +++ b/lib/Catalyst/Manual/Tutorial/Appendices.pod @@ -107,7 +107,7 @@ Removes four leading space from the current line through line 44 =head2 "Un-indenting" with Emacs -Although there author has not used Emacs for many years (apologies to +Although the author has not used Emacs for many years (apologies to the Emacs fans out there), here is a quick hint to get you started. To replace the leading spaces of every line in a file, use: @@ -126,6 +126,15 @@ commands such as C to set the mark at the cursor location and C> and C> to set the mark at the beginning and end of the file respectively. +Also, Stefan Kangas sent in the following tip about an alternate +approach using the command C to redo the indentation +for the currently selected region (adhering to indent rules in the +current major mode). You can run the command by typing M-x indent- +region or pressing the default keybinding C-M-\ in cperl-mode. +Additional details can be found here: + +L + =head1 APPENDIX 2: USING POSTGRESQL AND MYSQL