rudolfochrist / interleave

Emacs minor mode to interleave notes and text books
329 stars 18 forks source link

Better mode enabling and disabling handles. #39

Closed Yevgnen closed 7 years ago

Yevgnen commented 7 years ago

Currently when there's no interleave property found and require user to input some path, if a C-g or something else terminate the progress, the interleave-mode is still enabled, and the window config is changed, namely, being split. This commit will handle this situaion. If the pdf file is not successfully input or find, interleave-mode will be disabled automatically, while preserving the origin window config.

Also, when interleave-mode is disabled, the respective variables are finialized.

rudolfochrist commented 7 years ago

Thank you. I review the changes as soon as possible.