summaryrefslogtreecommitdiff
path: root/account.el
AgeCommit message (Collapse)Author
2023-09-06account: modify svg and move all-cost to the frontJSDurand
* account.el (account-agenda-command, account-agenda-shop-command): Display the sum of all costs at the beginning instead of at the end. This is more convenient. (account-agenda-export-to-svg): Fix the widths of blocks of each day in the output SVG to be 150, and the total width of the image will depend on the number of days to display. This is necessary if I want to put text under the blocks.
2023-08-31account: filtering and adding a payment method optionJSDurand
* account.el (account-capture-content): Add an option for the payment methods. (org-capture): This is required so that the capture templates variable is available. (account-collect-into-vec, account-agenda-command) (account-match-item, account-agenda-add-filter) (account-agenda-match, account-agenda-remove-filter) (account-mode-map): Add the functionality of filtering. Now the user can filter items based on some properties, like the payment method, the purpose, or the shop name, et cetera.
2023-08-24account: add two purposesJSDurand
* account.el (account-purposes-list): Two purposes "book" and "transportation" were missed.
2023-08-24account: erase buffer before inserting imageJSDurand
* account.el (account-agenda-export-to-svg): Previously I did not erase the buffer before displaying the image. This means if the image buffer was already used, the function would fail to insert the image again. Now this is fixed.
2023-08-23account: add a command to view accounts by shopJSDurand
* account.el (account-agenda-shop-command): This command lists expenses grouped by shop names. It is sometimes useful to know the shops I spent the most in. (org-agenda-custom-commands): Adjust the agenda command accordingly.
2023-08-23account: fix white background of svgJSDurand
* account.el (account-agenda-export-to-svg): The original exported SVG image did not specify the background color. Then the browser displays the image with a white background, but Emacs regards the background of the image as transparent. Since I use a dark background color in Emacs, the displayed image did not look right. So I add a white circle with large radius in the background to force the background color to be white, and it now looks a lot better.
2023-08-23org: ox-texinfo and accountJSDurand
* org-conf.el: Require ox-texinfo, and delete the parts about accounts. Those configurations are outdated now, and the new configurations are now in the new file "account.el". * account.el: Configurations for capturing and reviewing account information.