Comments (4)
I used to do something similar: My Deft files were all .txt files and so I had deft-text-mode
set to markdown-mode
. Otherwise, .txt files aren't special and just open in text-mode
. With the new deft-extensions
approach, I now accomplish this using an auto-mode-alist
entry specifically for .txt files in my deft-directory
(e.g., ~/deft/
):
(add-to-list 'auto-mode-alist '("/deft/.*\\.txt\\'" . markdown-mode))
It seems like you could you do something similar with your special minor mode?
from deft.
That worked! Don't know why I didn't think of that ;-)
Thanks!
On Thu, Jun 18, 2015 at 11:24 PM, Jason Blevins [email protected]
wrote:
I used to do something similar: My Deft files were all .txt files and so I
had deft-text-mode set to markdown-mode. Otherwise, .txt files aren't
special and just open in text-mode. With the new deft-extensions
approach, I now accomplish this using an auto-mode-alist entry
specifically for .txt files in my deft-directory (e.g., ~/deft/):(add-to-list 'auto-mode-alist '("/deft/.*.txt'" . markdown-mode))
It seems like you could you do something similar with your special minor
mode?β
Reply to this email directly or view it on GitHub
#4 (comment).
from deft.
Yes, well, I didn't think of it at first either, which is how deft-text-mode
came to exist in the first place. I'm happy to retire it now after realizing that it was duplicating functionality. Happy to hear that worked.
from deft.
Brilliant. Adding an auto-mode-alist
entry is even better than the original deft-text-mode
option, because the major mode for a note would always be consistent, no matter deft-mode
is enabled or not.
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
- deft-file-mtime: Wrong type argument
- Default directory for new files
- message Package cl is deprecated HOT 1
- 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.