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:
commit
a0b8d5f67a
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