doomemacs/modules/ui/deft/README.org

52 lines
1.7 KiB
Org Mode
Raw Normal View History

2021-07-12 19:48:24 +02:00
#+TITLE: ui/deft
2021-07-13 11:20:40 +02:00
#+DATE: August 27, 2018
2021-07-12 19:48:24 +02:00
#+SINCE: v2.0.9
#+STARTUP: inlineimages nofold
2018-08-26 16:41:38 +02:00
2021-07-12 19:48:24 +02:00
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#maintainers][Maintainers]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#prerequisites][Prerequisites]]
- [[#configuration][Configuration]]
2021-07-13 11:20:40 +02:00
- [[#troubleshooting][Troubleshooting]]
2018-08-26 16:41:38 +02:00
2021-07-12 19:48:24 +02:00
* Description
2021-07-13 11:20:40 +02:00
[[https://jblevins.org/projects/deft/][Deft]] is a major mode for creating, browsing, and filtering notes written in plain text formats, such as org-mode, markdown, and LaTeX. It enables you to quickly jot down thoughts and easily retrieve them later.
2021-07-12 19:48:24 +02:00
** Maintainers
This module has no dedicated maintainers.
** Module Flags
This module provides no flags.
** Plugins
+ [[https://github.com/jrblevin/deft][deft]]
* Prerequisites
This module has no prerequisites.
* Configuration
To use deft, you first need to specify the directory in which your notes are stored:
#+begin_src elisp
;; ~/.doom.d/config.el
(setq deft-directory "~/notes")
#+end_src
2018-08-26 16:51:38 +02:00
The default note format is org-mode. You can change this by setting the value of
2021-07-12 19:48:24 +02:00
the variable ~deft-default-extension~. Replacing the value with ~"md"~, for example,
will change the default note format to markdown:
#+begin_src elisp
(setq deft-default-extension "md")
#+end_src
2021-07-13 11:20:40 +02:00
You may also want to alter the way titles and file names are automatically created by editing ~deft-use-filename-as-title~ and/or ~deft-use-filter-string-for-filename~.
2021-07-12 19:48:24 +02:00
Further customization options can be found here: https://github.com/jrblevin/deft#other-customizations
2021-07-13 11:20:40 +02:00
* Troubleshooting
2021-07-12 19:48:24 +02:00
It is [[https://github.com/hlissner/doom-emacs/pull/2845/commits/dce80a3c8032f5390f4e763e18a108d5f3f08772][not recommended]] to re-enable deft's buffer auto-save.