0

I tried to create a template which insert a transaction with the current date

# -*- mode: snippet -*-
# name: breakfast
# key: breakfast
# condition: t                    
# --

2019-09-05 * ""
           Assets:DebtWechat  CNY
           Expenses:Food:Breakfast

How could change 2019-09-05 to a insert-current-date function?

AbstProcDo
  • 19,953
  • 19
  • 81
  • 138

1 Answers1

1

You can embed elisp code in your snippet. For your example, you could use something like

`(format-time-string "%Y-%m-%d")` * ""
Kyle Meyer
  • 1,546
  • 9
  • 10