Difference between revisions of "Deft"

From WikEmacs
Jump to navigation Jump to search
Line 21: Line 21:
  
 
* In the {{Buffer|*Deft*}} buffer:
 
* In the {{Buffer|*Deft*}} buffer:
** start typing to filter the list on notes
+
** start typing to filter the list of notes
 
** use {{Keys|C-c C-c|deft-filter-clear}} to clear the filter
 
** use {{Keys|C-c C-c|deft-filter-clear}} to clear the filter
 
** use {{Keys|C-c C-n|deft-new-file}} to quickly create a new note
 
** use {{Keys|C-c C-n|deft-new-file}} to quickly create a new note

Revision as of 15:48, 2 April 2012

Deft
Description note taking mode
Author Jason Blevins
Maintainer Jason Blevins
Source git://jblevins.org/git/deft.git

Deft is an Emacs mode for quickly browsing, filtering, and editing directories of plain text notes, inspired by Notational Velocity. It was designed for increased productivity when writing and taking notes by making it fast and simple to find the right file at the right time and by automating many of the usual tasks such as creating new files and saving files.

Basic setup

(require 'deft)

Helpful keybindings

  • Bind deft to a single key for quick access to notes:
(global-set-key (kbd "<F8>") 'deft)
  • In the "*Deft*" buffer:
    • start typing to filter the list of notes
    • use [C-c C-c] to clear the filter
    • use [C-c C-n] to quickly create a new note

Common Customization

Use Org for Deft Files

To use Org mode for you Deft files, add the following to your Emacs configuration file:

(setq deft-text-mode 'org-mode)

.

Then do one of the following:

  • Configure Deft to use .org as the file extension:
(setq deft-extension "org")
  • Associate Org mode with .txt files, or just with .txt files in a specific directory (e.g. notes/ as shown here)
(add-to-list 'auto-mode-alist '("notes/.*[.]txt$" . org-mode))

Deft with Dropbox and SimpleNote

Deft notes can be stored in the cloud using something like Dropbox. Simply configure Deft to use a directory that is being synced:

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

If you use the online service SimpleNote (e.g. to read and capture notes on an iOS device) you can combine this with Dropbox sync and Deft. SimpleNote looks for .txt files and uses the file name as the note title, so configure Deft to do the same:

(setq deft-extension "txt")
(setq deft-use-filename-as-title t)

See Also

Project Pages

Tutorial Pages