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:
parent
b943008eca
commit
616d676330
1
vlfi.el
1
vlfi.el
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user