0

I learned from How to embed external file contents in org file? about including contents from another file into the org file. I tried that for my README.org. My code in org file looked like this:

#+INCLUDE: "~/.emacs.d/init.el" src emacs-lisp :lines "2-20"

This indeed worked when I export the org file into html, looked very neat and even have syntax highlighting. However, when I upload the README into Github and try to view it in my Github project homepage's README area, the entire section of code disappeared.

I wish to be able to function like BEGIN_SRC emacs-lisp, so that I am able to view the chunk of code within README. How can I do this?

  • This is a question about Github, not Emacs. I don't think Github supports includes, but you should check their help pages to find out for sure. – db48x Mar 13 at 19:45
  • Nothing useful here. help.github.com/en/articles/about-readmes – Matthew Zeng Mar 13 at 19:56
  • Github supports org file for README, supports BEGIN_SRC and END_SRC but doesn't support INCLUDE, this sounds kinda absurd – Matthew Zeng Mar 13 at 19:59
  • I'm not going to make any promises about the quality or thoroughness of GitHub's help files. – db48x Mar 13 at 20:01

Your Answer

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

Browse other questions tagged or ask your own question.