Skip to content

Instantly share code, notes, and snippets.

@handlename
Created April 15, 2011 07:35
Show Gist options
  • Save handlename/921317 to your computer and use it in GitHub Desktop.
Save handlename/921317 to your computer and use it in GitHub Desktop.
display string width in current buffer to mini buffer.
(defun string-width-in-region (start end)
(interactive "r")
(princ (string-width (buffer-substring start end))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment