Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fly on files with other extension? #19

Open
trmd opened this issue Aug 15, 2018 · 1 comment
Open

Fly on files with other extension? #19

trmd opened this issue Aug 15, 2018 · 1 comment

Comments

@trmd
Copy link

trmd commented Aug 15, 2018

When I try to preview my markdown files I get this aggressive funny response:

What’s wrong with you???! Don’t flyit if you are not viewing a markdown file.

But I am! ;-) It's just that I use .txt as extension for them. I'm even in markdown mode.

Could I tell flymd that it's ok to try and preview these files?

@justinabrahms
Copy link

justinabrahms commented Apr 11, 2019

I believe this is what you want, which is an extension of the code which is used here

(setq flymd-markdown-regex (mapconcat 'identity '("\\.md\\'" "\\.markdown\\'" "\\.txt\\'") "\\|"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants