              (member (get-buffer (buffer-name)) deft-auto-save-buffers))
         (modi/deft-quit))
        (t
-        (deft))))
+        (call-interactively #'deft))))
 
     (defun modi/deft-complete (new-file)
       "Call the `deft-complete' command by default.

          ;; editing a deft-opened file
          (setq modi/pre-deft-window-configuration nil))))

    (defun modi/deft-dwim (open-deft-buffer)
      "Launch deft or quit a deft opened file based on context.

If OPEN-DEFT-BUFFER is non-nil, open `deft'.

Else if major-mode is `deft-mode', bury the buffer.
Else if in a deft-opened file buffer, call `modi/deft-quit'.
Else call `deft'."
      (interactive "P")
      (cond
       (open-deft-buffer ; when using `C-u'
        (deft))
       ((derived-mode-p 'deft-mode)
        (bury-buffer))
       ;; If the user is in a file buffer opened by deft,

;; Time-stamp: <2016-05-03 17:33:43 kmodi>

;; Deft is an Emacs mode for quickly browsing, filtering, and editing
;; directories of plain text notes, inspired by Notational Velocity.
