WIP: Initialisation.

This commit is contained in:
David Keegan 2013-10-28 08:38:39 +00:00
parent a958bd4860
commit da3852edd7
2 changed files with 18 additions and 5 deletions

View file

@ -39,13 +39,12 @@ positioned by date.")
;DkTbd:
(or dklrt-PackageDirectory
(setq dklrt-PackageDirectory "/opt/dk/emacs/dklrt-20131021.2244/"))
(setq dklrt-PackageDirectory "/opt/dk/emacs/dklrt-20131028.821/"))
(defun dklrt-SetKeysAndAppendRecurringMaybe()
"Bind \C-cr to dklrt-AppendRecurring and call dklrt_AppendRecurringMaybe.
(defun dklrt-SetCcKeys()
"Bind \C-cr to dklrt-AppendRecurring.
To invoke, add this function to ledger-mode-hook."
(define-key (current-local-map) "\C-cr" 'dklrt-AppendRecurring)
(dklrt-AppendRecurringMaybe))
(define-key (current-local-map) "\C-cr" 'dklrt-AppendRecurring))
(defun dklrt-AppendRecurringMaybe()
"Call dklrt_AppendRecurring(), but only if appropriate."

View file

@ -87,6 +87,20 @@ Foundation GNU Free Documentation Licence.
@node Getting Started
@section Getting Started
To append recurring transactions on entry to ledger-mode,
add this line to your emacs profile:
@lisp
(add-hook 'ledger-mode-hook 'dklrt-AppendRecurringMaybe)
@end lisp
To bind \C-cr to dklrt-AppendRecurring in ledger-mode only,
add this line to your emacs profile (optional).
@lisp
(add-hook 'ledger-mode-hook 'dklrt-SetCcKeys)
@end lisp
@node Known Issues
@section Known Issues