diff options
Diffstat (limited to 'fnl/plugins/persistence.fnl')
| -rw-r--r-- | fnl/plugins/persistence.fnl | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/fnl/plugins/persistence.fnl b/fnl/plugins/persistence.fnl index 2e81e78..8c2ff55 100644 --- a/fnl/plugins/persistence.fnl +++ b/fnl/plugins/persistence.fnl @@ -11,22 +11,21 @@ :desc "Ignore current session"}]) (λ init [] - (user-cmds - [:RestoreSession - (λ [] - (let [persistence (require :persistence)] - (persistence.load))) - {:nargs 0}] - [:RestoreLastSession - (λ [] - (let [persistence (require :persistence)] - (persistence.load {:last true}))) - {:nargs 0}] - [:IgnoreSession - (λ [] - (let [persistence (require :persistence)] - (persistence.stop))) - {:nargs 0}])) + (user-cmds [:RestoreSession + (λ [] + (let [persistence (require :persistence)] + (persistence.load))) + {:nargs 0}] + [:RestoreLastSession + (λ [] + (let [persistence (require :persistence)] + (persistence.load {:last true}))) + {:nargs 0}] + [:IgnoreSession + (λ [] + (let [persistence (require :persistence)] + (persistence.stop))) + {:nargs 0}])) (local opts {:options [:buffers :curdir :tabpages :winsize :help]}) |