Skip to content

Latest commit

 

History

History
56 lines (45 loc) · 1.89 KB

README.org

File metadata and controls

56 lines (45 loc) · 1.89 KB

Deft layer

Table of Contents

Description

This layer adds a search driven note taking system into Spacemacs.

Features:

  • Browsing and creating notes with a powerfull search function via Deft.
  • Integration of org-mode as note editor.
  • Configurable list of extensions to recognize as notes.

Install

Layer

To use this configuration layer, add it to your ~/.spacemacs. You will need to add deft to the existing dotspacemacs-configuration-layers list in this file.

Configuration

By default deft tries to put notes in ~/.deft but you can change this in your dotspacemacs/user-config function:

(setq deft-directory "~/Dropbox/notes")

By default Deft uses filenames for note titles and org-mode for editing. The default extension for new notes is org. However also md and txt files are recognized as notes. Which extensions are used for notes discovery can be configured in your dotfile:

(setq deft-extensions '("org" "md" "txt"))

Just add or substitute your preferred extension.

Key bindings

Key bindingDescription
SPC a nOpen Deft (works globally)
SPC m cClear deft filter
SPC m dDelete selected note
SPC m iToggle to regex search
SPC m nCreate new file with filter text
SPC m NCreate new file named
SPC m oDeft open file in other window
SPC m rRename selected note
SPC m qquit deft window