mirror of
https://github.com/m00natic/vlfi.git
synced 2025-04-18 16:50:19 +01:00
Make vlfi usable under GNU Emacs 23.
This commit is contained in:
parent
2525ebf069
commit
56134a8281
6
vlfi.el
6
vlfi.el
@ -443,6 +443,12 @@ Remaining part of the file ["
|
|||||||
(vlfi-mode)
|
(vlfi-mode)
|
||||||
(message "Switched to VLFI mode."))
|
(message "Switched to VLFI mode."))
|
||||||
|
|
||||||
|
;;; non recent Emacs
|
||||||
|
(unless (fboundp 'file-size-human-readable)
|
||||||
|
(defun file-size-human-readable (file-size)
|
||||||
|
"Print FILE-SIZE in MB."
|
||||||
|
(format "%.1fMB" (/ file-size 1024.0))))
|
||||||
|
|
||||||
(provide 'vlfi)
|
(provide 'vlfi)
|
||||||
|
|
||||||
;;; vlfi.el ends here
|
;;; vlfi.el ends here
|
||||||
|
Loading…
x
Reference in New Issue
Block a user