This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/deft/README.org
Eivind Fonn c3866382b2 Documentation update
- Add #+HTML_HEAD_EXTRA options to all org files
- HTMLize published documentation via CSS
2015-11-13 14:23:13 +01:00

58 lines
1.8 KiB
Org Mode

#+TITLE: Deft configuration layer for Spacemacs
#+HTML_HEAD_EXTRA: <link rel="stylesheet" type="text/css" href="../../css/readtheorg.css" />
* Table of Content :TOC_4_org:noexport:
- [[Description][Description]]
- [[Differences from default][Differences from default]]
- [[Install][Install]]
- [[Layer][Layer]]
- [[Configuration][Configuration]]
- [[Key Bindings][Key Bindings]]
* Description
[[http://jblevins.org/projects/deft/][Deft]] is an Emacs mode inspired by =Notational Velocity= for quickly
browsing and creating notes.
** Differences from default
This layer sets the default to use filenames for note titles as well as
=org-mode= for editing. The default extension is =org=. The default
configuration is set to recognize =org=, =md=, and =txt= extensions. If
you prefer that =Deft= recognize other extensions set an alternate
configuration by adding the following in your config file:
#+Begin_SRC emacs-lisp
(setq deft-extensions '("org" "md" "txt"))
#+END_SRC
Just add or substitute your preferred extension.
* Install
** Layer
To use this contribution add it to your =~/.spacemacs=
#+BEGIN_SRC emacs-lisp
(setq-default dotspacemacs-configuration-layers '(deft))
#+END_SRC
** Configuration
By default deft tries to put notes in =~/.deft= but you can change
this like so in your =dotspacemacs/user-config= function:
#+BEGIN_SRC emacs-lisp
(setq deft-directory "~/Dropbox/notes")
#+END_SRC
* Key Bindings
| Key Binding | Description |
|-------------+----------------------------------|
| ~SPC a n~ | Open Deft (works globally) |
| ~SPC m d~ | Delete selected note |
| ~SPC m r~ | Rename selected note |
| ~SPC m i~ | Toggle to regex search |
| ~SPC m n~ | Create new file with filter text |