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.

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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