5

I'm uploading a .el file to my server, and I'd like to set my .htaccess so that the file gets downloaded rather than displayed in the browser.

1 Answer 1

7

The proper type for Emacs Lisp files is text/elisp.

This can be added to your .htaccess with this line:

AddType text/elisp el

Firefox, for example, now recognizes it as "Emacs Lisp source code", and offers to download it.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.