Formatting cleanup
This commit is contained in:
parent
12c7ac7a4b
commit
3dc538189e
1 changed files with 47 additions and 40 deletions
|
|
@ -1225,7 +1225,7 @@ For example, you do not need to tell Ledger about the accounts you
|
||||||
use. Any time Ledger sees a posting involving an account it knows
|
use. Any time Ledger sees a posting involving an account it knows
|
||||||
nothing about, it will create it@footnote{This also means if you
|
nothing about, it will create it@footnote{This also means if you
|
||||||
misspell an account it will end up getting counted separately from what
|
misspell an account it will end up getting counted separately from what
|
||||||
you intended. The provided Emacs major mode provides for automatically
|
you intended. The provided EMACS major mode provides for automatically
|
||||||
filling in account names.}. If you use a commodity that is new to
|
filling in account names.}. If you use a commodity that is new to
|
||||||
Ledger, it will create that commodity, and determine its display
|
Ledger, it will create that commodity, and determine its display
|
||||||
characteristics (placement of the symbol before or after the amount,
|
characteristics (placement of the symbol before or after the amount,
|
||||||
|
|
@ -1242,7 +1242,7 @@ posting.
|
||||||
* Journal Format::
|
* Journal Format::
|
||||||
* Converting from other formats::
|
* Converting from other formats::
|
||||||
* Archiving Previous Years ::
|
* Archiving Previous Years ::
|
||||||
* Using Emacs::
|
* Using EMACS::
|
||||||
@end menu
|
@end menu
|
||||||
|
|
||||||
@node Most Basic Entry, Starting up, Keeping a Journal, Keeping a Journal
|
@node Most Basic Entry, Starting up, Keeping a Journal, Keeping a Journal
|
||||||
|
|
@ -2250,7 +2250,7 @@ easily be parsed into Ledger format using one of those tools. Some of the more
|
||||||
function.
|
function.
|
||||||
|
|
||||||
|
|
||||||
@node Archiving Previous Years , Using Emacs, Converting from other formats, Keeping a Journal
|
@node Archiving Previous Years , Using EMACS, Converting from other formats, Keeping a Journal
|
||||||
@section Archiving Previous Years
|
@section Archiving Previous Years
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -2299,7 +2299,7 @@ they were before the data was split.
|
||||||
|
|
||||||
How often should you split your ledger? You never need to, if you
|
How often should you split your ledger? You never need to, if you
|
||||||
don't want to. Even eighty years of data will not slow down ledger
|
don't want to. Even eighty years of data will not slow down ledger
|
||||||
much---and that's just using present day hardware! Or, you can keep
|
much, and that's just using present day hardware! Or, you can keep
|
||||||
the previous and current year in one file, and each year before that
|
the previous and current year in one file, and each year before that
|
||||||
in its own file. It's really up to you, and how you want to organize
|
in its own file. It's really up to you, and how you want to organize
|
||||||
your finances. For those who also keep an accurate paper trail, it
|
your finances. For those who also keep an accurate paper trail, it
|
||||||
|
|
@ -2309,45 +2309,52 @@ any electronic statements received during the year. In the arena of
|
||||||
organization, just keep in mind this maxim: Do whatever keeps you
|
organization, just keep in mind this maxim: Do whatever keeps you
|
||||||
doing it.
|
doing it.
|
||||||
|
|
||||||
@node Using Emacs, , Archiving Previous Years , Keeping a Journal
|
@node Using EMACS, , Archiving Previous Years , Keeping a Journal
|
||||||
@section Using Emacs to Maintain Your Journal
|
@section Using EMACS to Maintain Your Journal
|
||||||
@cindex Emacs
|
@cindex EMACS
|
||||||
|
|
||||||
@menu
|
@menu
|
||||||
* running ledger-mode::
|
* Running ledger-mode::
|
||||||
* Working with entries::
|
* Working with entries::
|
||||||
* Reconciling accounts::
|
* Reconciling accounts::
|
||||||
* Generating Reports::
|
* Generating Reports::
|
||||||
@end menu
|
@end menu
|
||||||
|
|
||||||
@node running ledger-mode, Working with entries, Using Emacs, Using Emacs
|
@node Running ledger-mode, Working with entries, Using EMACS, Using EMACS
|
||||||
@subsection Running ledger-mode
|
@subsection Running ledger-mode in EMACS
|
||||||
|
|
||||||
Journal files are simple free text files easily modified by any text
|
Journal files are simple free text files easily modified by any text
|
||||||
editor. A special mode for Emacs is included with the source
|
editor. A special mode for EMACS is included with the source
|
||||||
distribution.
|
distribution.
|
||||||
|
|
||||||
@cindex Emacs .emacs file
|
@cindex EMACS .emacs file
|
||||||
To use the Emacs mode, copy the several lisp files from the source lisp
|
|
||||||
directory your your @file{site-lisp} directory and add the following line
|
Add the following line to your @file{.emacs} (or equivalent,
|
||||||
to your @file{.emacs} (or equivalent, @file{~/Aquamacs/Preferences.el}
|
@file{~/Aquamacs/Preferences.el} for Aquamacs on Mac OS X)
|
||||||
for Aquamacs on Mac OS X)
|
|
||||||
@smallexample
|
@smallexample
|
||||||
(load "ledger")
|
(load "ldg-new")
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
|
Copy the several lisp files from the source lisp directory your your
|
||||||
|
@file{site-lisp} directory, or add the ledger lisp source directory to
|
||||||
|
your EMACS load path by adding:
|
||||||
|
@smallexample
|
||||||
|
(add-to-list 'load-path "~/ledger/lisp")
|
||||||
|
@end smallexample
|
||||||
|
@noindent to your @file{.emacs} file.
|
||||||
|
|
||||||
To trigger ledger mode when you visit a journal file, the first line of
|
To trigger ledger mode when you visit a journal file, the first line of
|
||||||
each of your journal files should be:
|
each of your journal files should be:
|
||||||
@smallexample
|
@smallexample
|
||||||
; -*-ledger-*-
|
; -*-ledger-*-
|
||||||
@end smallexample
|
@end smallexample
|
||||||
To enter ledger-mode on a new file, type M-x ledger-mode.
|
To enter ledger-mode on a new file, type @command{M-x ledger-mode}.
|
||||||
|
|
||||||
Once you have loaded a Journal file into Emacs, you have several
|
Once you have loaded a Journal file into EMACS, you have several
|
||||||
commands available to make entering, clearing and reconciling
|
commands available to make entering, clearing and reconciling
|
||||||
transactions and producing reports:
|
transactions and producing reports:
|
||||||
|
|
||||||
@cindex Emacs commands
|
@cindex EMACS commands
|
||||||
@table @code
|
@table @code
|
||||||
@item C-i or <TAB>
|
@item C-i or <TAB>
|
||||||
auto complete entry
|
auto complete entry
|
||||||
|
|
@ -2387,7 +2394,7 @@ kill the ledger report buffer
|
||||||
* Generating Reports::
|
* Generating Reports::
|
||||||
@end menu
|
@end menu
|
||||||
|
|
||||||
@node Working with entries, Reconciling accounts, running ledger-mode, Using Emacs
|
@node Working with entries, Reconciling accounts, Running ledger-mode, Using EMACS
|
||||||
@subsection Working with entries
|
@subsection Working with entries
|
||||||
@menu
|
@menu
|
||||||
* Manual Entry Support::
|
* Manual Entry Support::
|
||||||
|
|
@ -2405,13 +2412,13 @@ kill the ledger report buffer
|
||||||
In most financial programs, some sort of auto-completion is available to
|
In most financial programs, some sort of auto-completion is available to
|
||||||
save typing and improve accuracy. Ledger doesn't leave you hanging,
|
save typing and improve accuracy. Ledger doesn't leave you hanging,
|
||||||
@code{ledger-mode} provides tab completion on all portions of an entry.
|
@code{ledger-mode} provides tab completion on all portions of an entry.
|
||||||
Type a portion of the payee and hit <TAB>, and @code{ledger-mode} will
|
Type a portion of the payee and hit @code{<TAB>}, and @code{ledger-mode} will
|
||||||
suggest a completion. When filling in the account type the first few
|
suggest a completion. When filling in the account type the first few
|
||||||
letters followed by a <TAB> and the account will be filled in. For
|
letters followed by a @code{<TAB>} and the account will be filled in. For
|
||||||
example typing @code{Ex<TAB>Au<TAB>F<TAB>} would yield
|
example typing @code{Ex<TAB>Au<TAB>F<TAB>} would yield
|
||||||
@code{Expenses:Auto:Fuel} if you had previously used that account in
|
@code{Expenses:Auto:Fuel} if you had previously used that account in
|
||||||
this journal. If there are more than one account with similar starting,
|
this journal. If there are more than one account with similar starting,
|
||||||
hitting <TAB> multiple times will iterate through them. This is a good
|
hitting @code{<TAB>} multiple times will iterate through them. This is a good
|
||||||
habit to get in to prevent misspellings of accounts. Remember Ledger
|
habit to get in to prevent misspellings of accounts. Remember Ledger
|
||||||
does not validate the names of payees or account so a misspelled account
|
does not validate the names of payees or account so a misspelled account
|
||||||
will be interpreted as a new account by ledger.
|
will be interpreted as a new account by ledger.
|
||||||
|
|
@ -2419,10 +2426,10 @@ will be interpreted as a new account by ledger.
|
||||||
|
|
||||||
@node Automagically Adding new entries, Clearing Transactions, Manual Entry Support, Working with entries
|
@node Automagically Adding new entries, Clearing Transactions, Manual Entry Support, Working with entries
|
||||||
@subsubsection Automagically Adding new entries
|
@subsubsection Automagically Adding new entries
|
||||||
@cindex new transactions in Emacs
|
@cindex new transactions in EMACS
|
||||||
@cindex Emacs, adding new transactions
|
@cindex EMACS, adding new transactions
|
||||||
@code{C-c C-a} will run the @code{ledger entry} command (@pxref{entry
|
@code{C-c C-a} will run the @code{ledger entry} command (@pxref{entry
|
||||||
and xact}) from within Emacs. When typed, the mini-buffer will appear
|
and xact}) from within EMACS. When typed, the mini-buffer will appear
|
||||||
with the current year and month, waiting for you to enter the day and
|
with the current year and month, waiting for you to enter the day and
|
||||||
the payee. Ledger will generate a new entry based on the most recent
|
the payee. Ledger will generate a new entry based on the most recent
|
||||||
entry for that payee, using the amount and accounts from that
|
entry for that payee, using the amount and accounts from that
|
||||||
|
|
@ -2439,7 +2446,7 @@ current year and month. If you complete the mini-buffer entry by typing
|
||||||
@smallexample
|
@smallexample
|
||||||
Entry: 2011/11/28 viva food 34 tip 7 <enter>
|
Entry: 2011/11/28 viva food 34 tip 7 <enter>
|
||||||
@end smallexample
|
@end smallexample
|
||||||
@noindent Emacs will add the following entry to your journal:
|
@noindent EMACS will add the following entry to your journal:
|
||||||
@smallexample
|
@smallexample
|
||||||
2011/11/30 Viva Italiano
|
2011/11/30 Viva Italiano
|
||||||
Expenses:Food $34.00
|
Expenses:Food $34.00
|
||||||
|
|
@ -2450,8 +2457,8 @@ Entry: 2011/11/28 viva food 34 tip 7 <enter>
|
||||||
ordered by date, not necessarily at the bottom of the file.
|
ordered by date, not necessarily at the bottom of the file.
|
||||||
@node Clearing Transactions, , Automagically Adding new entries, Working with entries
|
@node Clearing Transactions, , Automagically Adding new entries, Working with entries
|
||||||
@subsubsection Clearing Transactions and Postings
|
@subsubsection Clearing Transactions and Postings
|
||||||
@cindex clearing transactions in Emacs
|
@cindex clearing transactions in EMACS
|
||||||
@cindex Emacs, clear transaction
|
@cindex EMACS, clear transaction
|
||||||
@code{C-c C-e} will place an asterisk after the date in the current
|
@code{C-c C-e} will place an asterisk after the date in the current
|
||||||
transaction. The tells ledger the transaction has been cleared through
|
transaction. The tells ledger the transaction has been cleared through
|
||||||
your bank (or whatever else you want the concept to mean)
|
your bank (or whatever else you want the concept to mean)
|
||||||
|
|
@ -2473,13 +2480,13 @@ If, for some reason you need to clear a specific posting in the
|
||||||
transaction you can type @code{C-c C-c} and the posting at point will be
|
transaction you can type @code{C-c C-c} and the posting at point will be
|
||||||
toggled.
|
toggled.
|
||||||
|
|
||||||
@node Reconciling accounts, Generating Reports, Working with entries, Using Emacs
|
@node Reconciling accounts, Generating Reports, Working with entries, Using EMACS
|
||||||
@subsection Reconciling accounts
|
@subsection Reconciling accounts
|
||||||
|
|
||||||
In the reconcile buffer, use SPACE to toggle the cleared status of a
|
In the reconcile buffer, use SPACE to toggle the cleared status of a
|
||||||
transaction, C-x C-s to save changes (to the ledger file as well).
|
transaction, C-x C-s to save changes (to the ledger file as well).
|
||||||
|
|
||||||
@node Generating Reports, , Reconciling accounts, Using Emacs
|
@node Generating Reports, , Reconciling accounts, Using EMACS
|
||||||
@subsection Generating Reports
|
@subsection Generating Reports
|
||||||
|
|
||||||
The ledger reports command asks the user to select a report to run then
|
The ledger reports command asks the user to select a report to run then
|
||||||
|
|
@ -4039,7 +4046,7 @@ file whose formatting has gotten out of hand.
|
||||||
@menu
|
@menu
|
||||||
* Comma Separated Variable files::
|
* Comma Separated Variable files::
|
||||||
* The emacs command::
|
* The emacs command::
|
||||||
* Emacs org mode::
|
* EMACS org mode::
|
||||||
* The pricemap Command::
|
* The pricemap Command::
|
||||||
* The xml Command::
|
* The xml Command::
|
||||||
* prices and pricedb::
|
* prices and pricedb::
|
||||||
|
|
@ -4153,11 +4160,11 @@ passed through @code{ledger print} a second time if you want to match on the
|
||||||
new payee field. During the @code{ledger convert} run only the original payee
|
new payee field. During the @code{ledger convert} run only the original payee
|
||||||
name as specified in the csv data seems to be used.
|
name as specified in the csv data seems to be used.
|
||||||
|
|
||||||
@node The emacs command, Emacs org mode, Comma Separated Variable files, Reports in other Formats
|
@node The emacs command, EMACS org mode, Comma Separated Variable files, Reports in other Formats
|
||||||
@subsection The @code{emacs} command
|
@subsection The @code{emacs} command
|
||||||
|
|
||||||
The @command{emacs} command outputs results in a form that can be read
|
The @command{emacs} command outputs results in a form that can be read
|
||||||
directly by Emacs Lisp. The format of the @code{sexp} is:
|
directly by EMACS Lisp. The format of the @code{sexp} is:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
((BEG-POS CLEARED DATE CODE PAYEE
|
((BEG-POS CLEARED DATE CODE PAYEE
|
||||||
|
|
@ -4165,10 +4172,10 @@ directly by Emacs Lisp. The format of the @code{sexp} is:
|
||||||
...) ; list of transactions
|
...) ; list of transactions
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@node Emacs org mode, The pricemap Command, The emacs command, Reports in other Formats
|
@node EMACS org mode, The pricemap Command, The emacs command, Reports in other Formats
|
||||||
@subsection Emacs @code{org} Mode
|
@subsection EMACS @code{org} Mode
|
||||||
The @code{org} command produces a journal file suitable for use in the
|
The @code{org} command produces a journal file suitable for use in the
|
||||||
Emacs org mode. More details on using org mode can be found at
|
EMACS org mode. More details on using org mode can be found at
|
||||||
@url{http://www.orgmode.org}.
|
@url{http://www.orgmode.org}.
|
||||||
|
|
||||||
Org mode has a sub-system known as Babel which allows for literate
|
Org mode has a sub-system known as Babel which allows for literate
|
||||||
|
|
@ -4475,7 +4482,7 @@ file and manipulated using Babel. However, only simple Ledger features
|
||||||
have been illustrated; please refer to the Ledger documentation for
|
have been illustrated; please refer to the Ledger documentation for
|
||||||
examples of more complex operations with a ledger.
|
examples of more complex operations with a ledger.
|
||||||
|
|
||||||
@node The pricemap Command, The xml Command, Emacs org mode, Reports in other Formats
|
@node The pricemap Command, The xml Command, EMACS org mode, Reports in other Formats
|
||||||
@subsection The @code{pricemap} Command
|
@subsection The @code{pricemap} Command
|
||||||
|
|
||||||
If you have the @code{graphviz} graph visualization package installed, ledger
|
If you have the @code{graphviz} graph visualization package installed, ledger
|
||||||
|
|
@ -5011,7 +5018,7 @@ commands.
|
||||||
@item @code{csv} @tab Show transactions in csv format, for exporting to other programs
|
@item @code{csv} @tab Show transactions in csv format, for exporting to other programs
|
||||||
@item @code{print} @tab Print transaction in a ledger readable format
|
@item @code{print} @tab Print transaction in a ledger readable format
|
||||||
@item @code{xml} @tab Produce XML output of the register command
|
@item @code{xml} @tab Produce XML output of the register command
|
||||||
@item @code{emacs} @tab Produce Emacs lisp output
|
@item @code{emacs} @tab Produce EMACS lisp output
|
||||||
@item @code{equity} @tab Print account balances as transactions
|
@item @code{equity} @tab Print account balances as transactions
|
||||||
@item @code{prices} @tab Print price history for matching commodities
|
@item @code{prices} @tab Print price history for matching commodities
|
||||||
@item @code{pricedb} @tab Print price history for matching commodities in ledger readable format
|
@item @code{pricedb} @tab Print price history for matching commodities in ledger readable format
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue