* accounting
@ 2021-01-04 8:54 Uwe Brauer
2021-01-04 9:31 ` accounting Eric S Fraga
` (3 more replies)
0 siblings, 4 replies; 19+ messages in thread
From: Uwe Brauer @ 2021-01-04 8:54 UTC (permalink / raw)
To: emacs-orgmode
Hi
https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html
Points out how to use ledger within org mode.
Is there any simpler solution?
Regards
Uwe Brauer
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: accounting
2021-01-04 8:54 accounting Uwe Brauer
@ 2021-01-04 9:31 ` Eric S Fraga
2021-01-04 10:19 ` accounting Dr. Arne Babenhauserheide
` (2 subsequent siblings)
3 siblings, 0 replies; 19+ messages in thread
From: Eric S Fraga @ 2021-01-04 9:31 UTC (permalink / raw)
To: emacs-orgmode
On Monday, 4 Jan 2021 at 09:54, Uwe Brauer wrote:
> Points out how to use ledger within org mode.
> Is there any simpler solution?
How do you wish it to be simpler? What is it you wish to do?
--
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-166-g291993
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: accounting
2021-01-04 8:54 accounting Uwe Brauer
2021-01-04 9:31 ` accounting Eric S Fraga
@ 2021-01-04 10:19 ` Dr. Arne Babenhauserheide
2021-01-04 12:43 ` accounting Uwe Brauer
2021-01-04 11:13 ` accounting Daniele Nicolodi
2021-01-04 12:52 ` accounting Charles Millar
3 siblings, 1 reply; 19+ messages in thread
From: Dr. Arne Babenhauserheide @ 2021-01-04 10:19 UTC (permalink / raw)
To: Uwe Brauer; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 683 bytes --]
Uwe Brauer <oub@mat.ucm.es> writes:
> https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html
>
> Points out how to use ledger within org mode.
>
> Is there any simpler solution?
Do you mean simpler accounting in org-mode, or do you mean simpler
ledger-integration?
You can always tangle your ledger-data and use a ledger commandline
client. Also Emacs has direct support for ledger. Here’s a setup via
use-package:
(use-package ledger-mode :ensure t :defer 20
:config
(org-babel-do-load-languages
'org-babel-load-languages
'((ledger . t))))
Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein
ohne es zu merken
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: accounting
2021-01-04 10:19 ` accounting Dr. Arne Babenhauserheide
@ 2021-01-04 12:43 ` Uwe Brauer
2021-01-04 14:00 ` accounting Eric S Fraga
0 siblings, 1 reply; 19+ messages in thread
From: Uwe Brauer @ 2021-01-04 12:43 UTC (permalink / raw)
To: Dr. Arne Babenhauserheide; +Cc: Uwe Brauer, emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 916 bytes --]
>>> "AB" == Arne Babenhauserheide <arne_bab@web.de> writes:
> Uwe Brauer <oub@mat.ucm.es> writes:
>> https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html
>>
>> Points out how to use ledger within org mode.
>>
>> Is there any simpler solution?
> Do you mean simpler accounting in org-mode,
This is what I meant.
> or do you mean simpler ledger-integration?
The example in this link is ok, also the output (the result of the
ledger operation) is not very nicely formatted.
> You can always tangle your ledger-data and use a ledger commandline
> client. Also Emacs has direct support for ledger. Here’s a setup via
> use-package:
> (use-package ledger-mode :ensure t :defer 20
> :config
> (org-babel-do-load-languages
> 'org-babel-load-languages
> '((ledger . t))))
> Best wishes,
> Arne
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: accounting
2021-01-04 12:43 ` accounting Uwe Brauer
@ 2021-01-04 14:00 ` Eric S Fraga
2021-01-04 20:01 ` accounting Uwe Brauer
0 siblings, 1 reply; 19+ messages in thread
From: Eric S Fraga @ 2021-01-04 14:00 UTC (permalink / raw)
To: Uwe Brauer; +Cc: emacs-orgmode
On Monday, 4 Jan 2021 at 13:43, Uwe Brauer wrote:
> The example in this link is ok, also the output (the result of the
> ledger operation) is not very nicely formatted.
ledger does allow you to control, in detail, how the output should be
formatted. The default output is suitable for a console display but you
can modify this through appropriate arguments to the ledger command line
via babel. For instance, I have this line in my org file for generating
a balance of my assets:
,#+call: year2020[:cmdline -V --format "%-20A %14T\n" bal --flat assets ]()
where year2020 is a ledger src block which covers my 2020-21 tax year.
You will need to look at the ledger documentation, which is intensive,
for how to specify the format string. Ledger does come with an Emacs
info file: (ledger3) Format Strings
--
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-166-g291993
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: accounting
2021-01-04 14:00 ` accounting Eric S Fraga
@ 2021-01-04 20:01 ` Uwe Brauer
[not found] ` <87r1mzkb7u.fsf@disroot.org>
0 siblings, 1 reply; 19+ messages in thread
From: Uwe Brauer @ 2021-01-04 20:01 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1421 bytes --]
>>> "ESF" == Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> On Monday, 4 Jan 2021 at 13:43, Uwe Brauer wrote:
>> The example in this link is ok, also the output (the result of the
>> ledger operation) is not very nicely formatted.
> ledger does allow you to control, in detail, how the output should be
> formatted. The default output is suitable for a console display but you
> can modify this through appropriate arguments to the ledger command line
> via babel. For instance, I have this line in my org file for generating
> a balance of my assets:
> ,#+call: year2020[:cmdline -V --format "%-20A %14T\n" bal --flat assets ]()
I am not sure I understand this (I admit I never used ledger, I used for
some time gnucash)
Do you mean this?
#+call: allinone[:cmdline -V --format "%-20A %14T\n" bal --flat assets ]()
#+name: allinone
#+begin_src ledger
2010/01/01 * Starting balance
assets:bank:savings 1300.00
income:starting balances
2010/07/22 * Got paid
assets:bank:chequing 1000.00
income:salary
2010/07/23 Rent
expenses:rent 250.00
assets:bank:chequing
2010/07/24 Food
expenses:food 150.00
assets:bank:chequing
2010/07/31 * Interest on bank savings
assets:bank:savings 3.53
income:interest
2010/07/31 * Transfer savings
assets:bank:savings 250.00
assets:bank:chequing
2010/08/01 got paid again
assets:bank:chequing 1000.00
income:salary
#+end_src
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: accounting
2021-01-04 8:54 accounting Uwe Brauer
2021-01-04 9:31 ` accounting Eric S Fraga
2021-01-04 10:19 ` accounting Dr. Arne Babenhauserheide
@ 2021-01-04 11:13 ` Daniele Nicolodi
2021-01-04 20:04 ` accounting Uwe Brauer
2021-01-04 12:52 ` accounting Charles Millar
3 siblings, 1 reply; 19+ messages in thread
From: Daniele Nicolodi @ 2021-01-04 11:13 UTC (permalink / raw)
To: emacs-orgmode
On 04/01/2021 09:54, Uwe Brauer wrote:
> Hi
>
> https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html
>
> Points out how to use ledger within org mode.
>
> Is there any simpler solution?
As other pointed out, you are not describing what you want to
accomplish, thus is impossible to suggest anything concrete. However, I
would like to suggest to look at Beancount and beancount-mode as
alternatives to Ledger as plain text accounting tools.
Cheers,
Dan
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: accounting
2021-01-04 11:13 ` accounting Daniele Nicolodi
@ 2021-01-04 20:04 ` Uwe Brauer
2021-01-04 21:17 ` accounting Samuel Wales
2021-01-05 0:08 ` accounting Daniele Nicolodi
0 siblings, 2 replies; 19+ messages in thread
From: Uwe Brauer @ 2021-01-04 20:04 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 741 bytes --]
>>> "DN" == Daniele Nicolodi <daniele@grinta.net> writes:
> On 04/01/2021 09:54, Uwe Brauer wrote:
>> Hi
>>
>> https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html
>>
>> Points out how to use ledger within org mode.
>>
>> Is there any simpler solution?
> As other pointed out, you are not describing what you want to
> accomplish, thus is impossible to suggest anything concrete. However, I
> would like to suggest to look at Beancount and beancount-mode as
> alternatives to Ledger as plain text accounting tools.
Thanks, it seems that beancount is not in Ubuntu, and beancount-mode is
not available as a emacs package.
Do you have any pointers?
Thanks
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: accounting
2021-01-04 20:04 ` accounting Uwe Brauer
@ 2021-01-04 21:17 ` Samuel Wales
2021-01-05 0:08 ` accounting Daniele Nicolodi
1 sibling, 0 replies; 19+ messages in thread
From: Samuel Wales @ 2021-01-04 21:17 UTC (permalink / raw)
To: emacs-orgmode
i don't know if this is the best, but for some reason i had it so that
ledger goes into a block [used to be example or so, now is ledger],
and then post-process it with a shell source block. perhaps this will
make more sense [in the distant past it made more sense to me].
when i process it, i call the source block, which means to run the
shell, which calls the ledger command on the data i keep in org. for
some reason it outputs each line to the minibuffer, which is a bit
slow. but it is not a big deal. and i am not sure about searches.
On 1/4/21, Uwe Brauer <oub@mat.ucm.es> wrote:
>>>> "DN" == Daniele Nicolodi <daniele@grinta.net> writes:
>
> > On 04/01/2021 09:54, Uwe Brauer wrote:
> >> Hi
> >>
> >>
> https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html
> >>
> >> Points out how to use ledger within org mode.
> >>
> >> Is there any simpler solution?
>
> > As other pointed out, you are not describing what you want to
> > accomplish, thus is impossible to suggest anything concrete. However,
> I
> > would like to suggest to look at Beancount and beancount-mode as
> > alternatives to Ledger as plain text accounting tools.
>
> Thanks, it seems that beancount is not in Ubuntu, and beancount-mode is
> not available as a emacs package.
>
> Do you have any pointers?
>
> Thanks
>
--
The Kafka Pandemic
Please learn what misopathy is.
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: accounting
2021-01-04 20:04 ` accounting Uwe Brauer
2021-01-04 21:17 ` accounting Samuel Wales
@ 2021-01-05 0:08 ` Daniele Nicolodi
2021-01-05 7:50 ` accounting Uwe Brauer
1 sibling, 1 reply; 19+ messages in thread
From: Daniele Nicolodi @ 2021-01-05 0:08 UTC (permalink / raw)
To: emacs-orgmode
On 04/01/2021 21:04, Uwe Brauer wrote:
>>>> "DN" == Daniele Nicolodi <daniele@grinta.net> writes:
>
> > On 04/01/2021 09:54, Uwe Brauer wrote:
> >> Hi
> >>
> >> https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html
> >>
> >> Points out how to use ledger within org mode.
> >>
> >> Is there any simpler solution?
>
> > As other pointed out, you are not describing what you want to
> > accomplish, thus is impossible to suggest anything concrete. However, I
> > would like to suggest to look at Beancount and beancount-mode as
> > alternatives to Ledger as plain text accounting tools.
>
> Thanks, it seems that beancount is not in Ubuntu, and beancount-mode is
> not available as a emacs package.
>
> Do you have any pointers?
https://beancount.github.io/
is the project home page. You can find the documentation here:
https://beancount.github.io/docs/
I haven't submitted beancount-mode to any Emacs package repository yet,
there is still some work I would like to do before doing it. You can
find it here:
https://github.com/beancount/beancount-mode
with some minimal documentation.
Beancount is distributed as a Python package, thus it should be easily
installable on any system providing Python 3.6 or later.
Cheers,
Dan
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: accounting
2021-01-05 0:08 ` accounting Daniele Nicolodi
@ 2021-01-05 7:50 ` Uwe Brauer
0 siblings, 0 replies; 19+ messages in thread
From: Uwe Brauer @ 2021-01-05 7:50 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 743 bytes --]
> On 04/01/2021 21:04, Uwe Brauer wrote:
> https://beancount.github.io/
> is the project home page. You can find the documentation here:
> https://beancount.github.io/docs/
> I haven't submitted beancount-mode to any Emacs package repository yet,
> there is still some work I would like to do before doing it. You can
> find it here:
> https://github.com/beancount/beancount-mode
> with some minimal documentation.
> Beancount is distributed as a Python package, thus it should be easily
> installable on any system providing Python 3.6 or later.
Thanks, I am still on Ubuntu 16.04 running 3.5 and call install
beancount, I once tried upgrading python and it caused a lot of other
problems, most likely I have to upgrade Ubuntu, sigh
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: accounting
2021-01-04 8:54 accounting Uwe Brauer
` (2 preceding siblings ...)
2021-01-04 11:13 ` accounting Daniele Nicolodi
@ 2021-01-04 12:52 ` Charles Millar
2021-01-05 15:44 ` accounting Uwe Brauer
3 siblings, 1 reply; 19+ messages in thread
From: Charles Millar @ 2021-01-04 12:52 UTC (permalink / raw)
To: emacs-orgmode
On 1/4/21 3:54 AM, Uwe Brauer wrote:
>
> Hi
>
> https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html
>
> Points out how to use ledger within org mode.
>
> Is there any simpler solution?
>
> Regards
>
> Uwe Brauer
>
>
If "simpler" means just making entries into your ledger.dat file using
orgmode you may wish to refer to Sacha Chua's capture template for that
very purpose. She posted it a few years ago.
https://sachachua.com/blog/2010/11/emacs-recording-ledger-entries-with-org-capture-templates/
Charlie Millar
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2021-01-06 17:08 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-04 8:54 accounting Uwe Brauer
2021-01-04 9:31 ` accounting Eric S Fraga
2021-01-04 10:19 ` accounting Dr. Arne Babenhauserheide
2021-01-04 12:43 ` accounting Uwe Brauer
2021-01-04 14:00 ` accounting Eric S Fraga
2021-01-04 20:01 ` accounting Uwe Brauer
[not found] ` <87r1mzkb7u.fsf@disroot.org>
2021-01-05 15:35 ` accounting Uwe Brauer
2021-01-05 16:02 ` [A solution of sorts] (was: accounting) Uwe Brauer
2021-01-05 16:09 ` [A solution of sorts] Eric S Fraga
2021-01-06 17:02 ` Uwe Brauer
2021-01-05 16:03 ` accounting Eric S Fraga
2021-01-06 2:49 ` accounting Ihor Radchenko
2021-01-04 11:13 ` accounting Daniele Nicolodi
2021-01-04 20:04 ` accounting Uwe Brauer
2021-01-04 21:17 ` accounting Samuel Wales
2021-01-05 0:08 ` accounting Daniele Nicolodi
2021-01-05 7:50 ` accounting Uwe Brauer
2021-01-04 12:52 ` accounting Charles Millar
2021-01-05 15:44 ` accounting Uwe Brauer
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.