Move to :ui
This commit is contained in:
parent
1655e84de2
commit
8508e931ca
3 changed files with 3 additions and 3 deletions
32
modules/ui/deft/config.el
Normal file
32
modules/ui/deft/config.el
Normal file
|
@ -0,0 +1,32 @@
|
|||
;;; ui/deft/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(def-package! deft
|
||||
:commands deft
|
||||
:init
|
||||
(setq deft-extensions '("org" "md" "tex" "txt")
|
||||
deft-default-extension "org"
|
||||
;; de-couples filename and note title:
|
||||
deft-use-filename-as-title nil
|
||||
deft-use-filter-string-for-filename t
|
||||
deft-org-mode-title-prefix t
|
||||
;; converts the filter string into a readable file-name using kebab-case:
|
||||
deft-file-naming-rules
|
||||
'((noslash . "-")
|
||||
(nospace . "-")
|
||||
(case-fn . downcase)))
|
||||
:config
|
||||
;; start filtering immediately
|
||||
(add-hook! 'deft-mode-hook '((evil-insert-state nil)))
|
||||
(map! :map deft-mode-map
|
||||
:localleader
|
||||
:n "RET" #'deft-new-file-named
|
||||
:n "a" #'deft-archive-file
|
||||
:n "c" #'deft-filter-clear
|
||||
:n "d" #'deft-delete-file
|
||||
:n "f" #'deft-find-file
|
||||
:n "g" #'deft-refresh
|
||||
:n "l" #'deft-filter
|
||||
:n "n" #'deft-new-file
|
||||
:n "r" #'deft-rename-file
|
||||
:n "s" #'deft-toggle-sort-method
|
||||
:n "t" #'deft-toggle-incremental-search))
|
Loading…
Add table
Add a link
Reference in a new issue