-;; Time-stamp: <2015-06-26 16:51:23 kmodi>
+;; Time-stamp: <2015-09-15 12:09:27 kmodi>
 
 ;; Deft is an Emacs mode for quickly browsing, filtering, and editing
 ;; directories of plain text notes, inspired by Notational Velocity.
-;; http://jblevins.org/projects/deft/
+;; http://jblevins.org/projects/deft
+;; https://github.com/jrblevin/deft
 
 (use-package deft
   :commands (modi/deft-dwim deft deft-new-file deft-find-file)

      (if new-file
          (deft-new-file)
        (deft-complete)))
    (bind-key "RET" #'modi/deft-complete deft-mode-map)))


(provide 'setup-deft)

;; |-------------------+--------------------------------|
;; | deft mode binding | Description                    |
;; |-------------------+--------------------------------|
;; | C-c C-n           | deft-new-file                  |
;; | C-c C-m           | deft-new-file-named            |
;; | <C-return>        | deft-new-file-named            |
;; | C-c C-d           | deft-delete-file               |
;; | C-c C-r           | deft-rename-file               |
;; | C-c C-f           | deft-find-file                 |
;; | C-c C-a           | deft-archive-file              |
;; | C-c C-t           | deft-toggle-incremental-search |
;; | C-c C-s           | deft-toggle-sort-method        |
;; | C-c C-g           | deft-refresh                   |
;; | C-c C-q           | quit-window                    |
;; |-------------------+--------------------------------|

  (progn
    (setq deft-directory (concat org-directory "notes/"))
    (setq deft-extensions '("org"))
    (setq deft-use-filename-as-title nil) ; show actual titles in *Deft* buffer
    (setq deft-use-filter-string-for-filename t)
    (setq deft-auto-save-interval 0) ; default is 1.0, 0 to disable auto-save
    (setq deft-file-naming-rules '((nospace . "_")
                                   (case-fn . downcase)))

