1

I have several file level properties (like #+OPTIONS: toc:nil ) always defined at begin of all my org files. I wonder whether it is possible to make a org template so that all org files I create in emacs will have these properties added automatically?

1

You could use auto-insert-mode for that. Add the following to your .emacs file:

(auto-insert-mode 1)
(add-to-list 'auto-insert-alist '(org-mode nil "#+OPTIONS: toc:nil\n"))
  • somebody also reocmmended with using hook or yasnippet. I see all the 3 options are correct solutions! – Xi Xiao Sep 29 '15 at 13:44

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.