Difference between revisions of "Deft"

From WikEmacs
Jump to navigation Jump to search
m (markup - don't use header1 per mediawiki guidelines)
(deft with org)
Line 18: Line 18:
  
 
== Common Customization ==
 
== Common Customization ==
 +
 +
=== Use Org for Deft Files ===
 +
 +
To use [[Org]] mode for you [[Deft]] files, add the following to your {{EmacsConfigFile}}: {{Snippet|(setq deft-text-mode 'org-mode)}}.
 +
 +
Then do '''one''' of the following:
 +
* Configure Deft to use <tt>.org</tt> as the file extension:
 +
:{{Snippet|(setq deft-extension "org")}}
 +
* Associate Org mode with <tt>.txt</tt> files, or just with <tt>.txt</tt> files in a specific directory (e.g. {{Directory|notes}} as shown here})
 +
:{{Snippet|(add-to-list 'auto-mode-alist '("notes/.*[.]txt$" . org-mode))}}
  
 
== See Also ==
 
== See Also ==

Revision as of 14:46, 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

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))

See Also

Project Pages

Tutorial Pages