1
0
mirror of https://github.com/m00natic/vlfi.git synced 2025-01-31 02:00:47 +00:00

Alters vlfi to respect the default-directory variable when opening

files.
This commit is contained in:
Dan LaManna 2013-07-24 21:49:14 -04:00
parent b943008eca
commit 616d676330

View File

@ -96,6 +96,7 @@ buffer. You can customize number of bytes displayed by customizing
`vlfi-batch-size'."
(interactive "fFile to open: ")
(with-current-buffer (generate-new-buffer "*vlfi*")
(setq default-directory (file-name-directory (expand-file-name file)))
(vlfi-mode)
(setq buffer-file-name file
vlfi-file-size (vlfi-get-file-size file))