Added func to calculate region length.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 28 Dec 2009 19:46:04 +0200
changeset 230 b34c94fa13d9
parent 229 0a42b3480404
child 231 053a9e877724
Added func to calculate region length.
.emacs-my
--- a/.emacs-my	Mon Dec 28 19:41:55 2009 +0200
+++ b/.emacs-my	Mon Dec 28 19:46:04 2009 +0200
@@ -342,6 +342,11 @@
 ;; ======================================================================
 ;; Convenient
 
+(defun reglen()
+  "Show region length."
+  (interactive)
+  (message "%s" (- (region-end) (region-beginning))))
+
 ;; ----------------------------------------------------------------------
 ;; Completion