Comments (6)
Can you try configuring it like this and let me know if it works?
(use-package deft
:bind ("C-<f12>" . deft)
:init (setq deft-directory "~/Dropbox/Oleg/Org/"
deft-text-mode 'org-mode
deft-extensions '("org")
deft-recursive t
deft-new-file-format "%Y-%m-%dT%H%M"))
Otherwise, you can try setting deft-default-extension
directly. It will default to the first value in deft-extensions
, but for it to work that way the extensions list needs to be set before loading the package.
from deft.
@jrblevin your code worked - thanks! Do you know why this was better?
from deft.
Glad it worked!
With use-package
, :init
evaluates the code before the package is loaded, so then when deft chooses the first element of deft-extensions
, it's your custom list not the package default list (which begins with "txt").
from deft.
Thanks! Just to clarify - shouldn't (setq deft-extensions '("org"))
declared after (use-package deft)
just override the the package defaults?
from deft.
The code in the package works like this:
(defcustom deft-extensions '("txt" "text" "md" "markdown" "org"))
(defvar deft-default-extension (car deft-extensions))
So, for better or worse, deft-default-extension
is currently defined relative to the value of deft-extensions
at package load time. Perhaps I should use a function instead, so that the default extensions can change dynamically.
from deft.
Got it, thanks! I'll flag this issue as closed.
Thanks for your work on these packages - deft, your themes and markdown mode are unbelievably useful!
from deft.
Related Issues (20)
- Deft hangs on emacs 28 HOT 12
- Right to left text in file causes wrong alignment of date and time stamp in Deft file browser.
- Second search can not jump to accurate position
- Support custom filters? HOT 1
- How to make the title and content not on the same line๏ผ HOT 2
- How to make deft work with files without file extension?
- docu for `deft-file-naming-rules` missing HOT 1
- How to use `deft-file-naming-rules` with `usepackage` HOT 1
- Display file at point when using deft-find-file HOT 1
- Adding optional Xapian support HOT 12
- Incongruity between default file type and default summary generation
- Super slow
- Fix to make deft faster (also on older emacsen) HOT 3
- configure list of files and format to new notes
- deft--org-complete is generating broken links HOT 1
- Executing shell commands on files
- Emoji in org-mode files causing Deft summary lines to bleed over into next line
- Org-rifle vs deft HOT 1
- creating new files with Deft using prompt for title HOT 4
- deft-find-file: how to disable defaulting to "find-file" and instead use deft-new-file-format
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deft.