ledger-redo added as after-save-hook
This commit is contained in:
parent
fc2700daa9
commit
4606bb293d
2 changed files with 3 additions and 1 deletions
|
|
@ -337,6 +337,7 @@ With a prefix argument, remove the effective date. "
|
|||
(set (make-local-variable 'pcomplete-command-completion-function)
|
||||
'ledger-complete-at-point)
|
||||
(add-hook 'completion-at-point-functions 'pcomplete-completions-at-point nil t)
|
||||
(add-hook 'after-save-hook 'ledger-report-redo)
|
||||
|
||||
;(add-hook 'after-save-hook)
|
||||
(add-hook 'post-command-hook 'ledger-highlight-xact-under-point nil t)
|
||||
|
|
|
|||
|
|
@ -361,7 +361,8 @@ Optional EDIT the command."
|
|||
"Redo the report in the current ledger report buffer."
|
||||
(interactive)
|
||||
|
||||
(if (get-buffer ledger-report-buffer-name)
|
||||
(if (and (get-buffer ledger-buf)
|
||||
(get-buffer ledger-report-buffer-name))
|
||||
(progn
|
||||
(pop-to-buffer (get-buffer ledger-report-buffer-name))
|
||||
(shrink-window-if-larger-than-buffer)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue