-;; Time-stamp: <2015-06-01 13:37:35 kmodi>
+;; Time-stamp: <2015-06-01 13:48:54 kmodi>
 
 ;; Deft is an Emacs mode for quickly browsing, filtering, and editing
 ;; directories of plain text notes, inspired by Notational Velocity.

        (deft))
       ((derived-mode-p 'deft-mode)
        (deft-delete-file))
       ((and modi/pre-deft-window-configuration
             (member (get-buffer (buffer-name)) deft-auto-save-buffers))
        ;; a deft-opened file is always added to `deft-auto-save-buffers' in
        ;; the `deft-open-file' function (whether the user has chosen to auto
        ;; save the deft files or not).
        (modi/quit-deft))
       (t
        (deft))))

      "Launch deft or quit a deft opened file based on context.

If major-mode is `deft-mode', call `deft-delete-file'.
If in a deft-opened file buffer, call `modi/quit-deft'.
Else call `deft'.

With prefix argument, open `deft'."
