EFLS / zetteldeft

A Zettelkasten system! Or rather, some functions on top of the emacs deft package.
https://efls.github.io/zetteldeft
GNU General Public License v3.0
394 stars 42 forks source link

Error attempting to access home note initially #108

Open subhacom opened 3 years ago

subhacom commented 3 years ago

After starting emacs, attempt to go to the home note throws an error:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  string-match("^/home/user/.deft/" nil)
  deft-find-file(nil)
  zetteldeft-find-file(nil)
  zetteldeft-go-home()
  funcall-interactively(zetteldeft-go-home)
  call-interactively(zetteldeft-go-home nil nil)
  command-execute(zetteldeft-go-home)

However this problem goes away after calling deft (C-c d d). Is this expected behavior?

EFLS commented 3 years ago

This is unrelated to the home note, actually.

It's expected but not really. Zetteldeft currently requires the user to first launch Deft, but this is not ideal. Thanks for reminding me to actually change this behaviour. There was a related issue submitted, but can't seem to find it at the moment.