mirror of
https://github.com/davidkeegan/dklrt
synced 2024-11-16 07:47:50 +01:00
WIP: Initialisation.
This commit is contained in:
parent
a958bd4860
commit
da3852edd7
2 changed files with 18 additions and 5 deletions
9
dklrt.el
9
dklrt.el
|
@ -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."
|
||||
|
|
14
dklrt.texi
14
dklrt.texi
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue