emacs.rst
changeset 218 9ae36e91b0d0
parent 213 af6fdb4adbf3
child 220 10d0d94eabde
child 223 1f1a18891bc2
--- a/emacs.rst	Fri Oct 09 09:18:25 2009 +0300
+++ b/emacs.rst	Mon Oct 12 23:05:22 2009 +0300
@@ -6,7 +6,7 @@
 
 Execute 'M-x edebug-defun' (also on 'C-u C-M-x') on defun in source code to
 enable debugging for desired function. When next time this function invoked
-you entered to its debugging (jamped to its source code).
+you entered to its debugging (jumped to its source code).
 
 To start debug execute code which used debugged function.
 
@@ -22,7 +22,7 @@
 
 ** How debug ini file?
 
-When your InitFile has a bug, or when you load external files that cause
+When your ini has a bug, or when you load external files that cause
 errors, the bug is often hard to find, because the Emacs Lisp reader does not
 know about line numbers and files - it just knows an error happened, and
 that's it.
@@ -57,3 +57,13 @@
   http://en.wikipedia.org/wiki/W3m
   http://emacs-w3m.namazu.org/
   http://www.gnu.org/software/w3/
+
+* Tricks.
+
+** Sort and uniquify lines.
+
+Select region, type C-u M-| sort -u RET.
+
+With transient-mark-mode and delete-selection-mode enabled: select region,
+type M-| sort -u RET to replace selection with sorted and uniquified lines.
+