2015-12-02 14:23:39 +00:00
|
|
|
#+TITLE: Deft layer
|
2015-06-10 16:44:30 +00:00
|
|
|
|
2016-03-31 02:59:55 +00:00
|
|
|
* Table of Content :TOC_4_gh:noexport:
|
|
|
|
- [[#description][Description]]
|
|
|
|
- [[#differences-from-default][Differences from default]]
|
|
|
|
- [[#install][Install]]
|
|
|
|
- [[#layer][Layer]]
|
|
|
|
- [[#configuration][Configuration]]
|
|
|
|
- [[#key-bindings][Key Bindings]]
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
* 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
|
2015-09-21 05:13:46 +00:00
|
|
|
=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
|
2016-04-13 03:31:38 +00:00
|
|
|
(setq deft-extensions '("org" "md" "txt"))
|
2015-09-21 05:13:46 +00:00
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
Just add or substitute your preferred extension.
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
* Install
|
|
|
|
** Layer
|
2016-01-06 05:21:55 +00:00
|
|
|
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.
|
2015-06-10 16:44:30 +00:00
|
|
|
|
|
|
|
** Configuration
|
|
|
|
By default deft tries to put notes in =~/.deft= but you can change
|
2015-09-28 06:05:18 +00:00
|
|
|
this like so in your =dotspacemacs/user-config= function:
|
2015-06-10 16:44:30 +00:00
|
|
|
|
2015-06-10 21:16:01 +00:00
|
|
|
#+BEGIN_SRC emacs-lisp
|
2015-06-10 16:44:30 +00:00
|
|
|
(setq deft-directory "~/Dropbox/notes")
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
* Key Bindings
|
|
|
|
|
|
|
|
| Key Binding | Description |
|
|
|
|
|-------------+----------------------------------|
|
2015-06-10 21:16:01 +00:00
|
|
|
| ~SPC a n~ | Open Deft (works globally) |
|
2017-04-21 03:21:09 +00:00
|
|
|
| ~SPC m c~ | Clear deft filter |
|
2015-06-10 21:16:01 +00:00
|
|
|
| ~SPC m d~ | Delete selected note |
|
|
|
|
| ~SPC m i~ | Toggle to regex search |
|
|
|
|
| ~SPC m n~ | Create new file with filter text |
|
2017-04-21 03:21:09 +00:00
|
|
|
| ~SPC m N~ | Create new file named |
|
|
|
|
| ~SPC m o~ | Deft open file in other window |
|
|
|
|
| ~SPC m r~ | Rename selected note |
|