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

Merge pull request #3 from danlamanna/master

Alters vlfi to respect the default-directory variable when opening
files.
This commit is contained in:
Andrey Kotlarski 2013-07-25 01:17:35 -07:00
commit a0b8d5f67a

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))