mirror of
https://github.com/m00natic/vlfi.git
synced 2025-02-07 13:40:49 +00:00
Rename vlf-discard-edit -> vlf-refresh.
This commit is contained in:
parent
28646fbfee
commit
3e8098af61
@ -86,6 +86,10 @@ from the beginning, so again the bigger current batch size, the
|
|||||||
quicker. With negative argument, lines are counted from the end of
|
quicker. With negative argument, lines are counted from the end of
|
||||||
file.
|
file.
|
||||||
|
|
||||||
|
** Reload
|
||||||
|
|
||||||
|
*C-c C-v g* discards modifications (if such) and reloads chunk.
|
||||||
|
|
||||||
** Edit and save
|
** Edit and save
|
||||||
|
|
||||||
If editing doesn't change size of the chunk, only this chunk is saved.
|
If editing doesn't change size of the chunk, only this chunk is saved.
|
||||||
|
4
vlf.el
4
vlf.el
@ -77,7 +77,7 @@
|
|||||||
(define-key map "]" 'vlf-end-of-file)
|
(define-key map "]" 'vlf-end-of-file)
|
||||||
(define-key map "j" 'vlf-jump-to-chunk)
|
(define-key map "j" 'vlf-jump-to-chunk)
|
||||||
(define-key map "l" 'vlf-goto-line)
|
(define-key map "l" 'vlf-goto-line)
|
||||||
(define-key map "q" 'vlf-discard-edit)
|
(define-key map "g" 'vlf-refresh)
|
||||||
(define-key map-prefix "\C-c\C-v" map)
|
(define-key map-prefix "\C-c\C-v" map)
|
||||||
map-prefix)
|
map-prefix)
|
||||||
"Keymap for `vlf-mode'.")
|
"Keymap for `vlf-mode'.")
|
||||||
@ -854,7 +854,7 @@ in file: %s" total-matches line regexp file)
|
|||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;; editing
|
;;; editing
|
||||||
|
|
||||||
(defun vlf-discard-edit ()
|
(defun vlf-refresh ()
|
||||||
"Discard edit and refresh chunk from file."
|
"Discard edit and refresh chunk from file."
|
||||||
(interactive)
|
(interactive)
|
||||||
(set-buffer-modified-p nil)
|
(set-buffer-modified-p nil)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user