Skip to content

Instantly share code, notes, and snippets.

@satyr
Created October 24, 2008 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satyr/19338 to your computer and use it in GitHub Desktop.
Save satyr/19338 to your computer and use it in GitHub Desktop.
(defun show-bytes () (interactive)
(let ((fn (get-buffer-file-name)))
(message (concat "buffer: ~D"
(if fn (format nil " file: ~D" (file-length fn)) ""))
(buffer-size))))
(global-set-key #\C-b 'show-bytes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment