ahyatt / ekg

The emacs knowledge graph, app for notes and structured data.
GNU General Public License v3.0
230 stars 19 forks source link

ekg-show-notes-latest-captured: Ensure database is connected #21

Closed PuercoPop closed 1 year ago

PuercoPop commented 1 year ago

If I call `ekg-show-notes-latest-captured' without first having called another function that connects to ekg database I get an error. This fixes that issue.

We might want to consider a ekg-with-db macro, similar to magit-with-editor and other macros that ensure a resource is available.

ahyatt commented 1 year ago

Yes, a macro might be good... but for the meanwhile this helps, thank you.