diff --git a/module2/ressources/rr_org/init.el b/module2/ressources/rr_org/init.el index e5b09e8ac4a86dd08d07e80f6c720780446a9358..5ce0517e27f2555d960833f79c65b2b3b7da026b 100644 --- a/module2/ressources/rr_org/init.el +++ b/module2/ressources/rr_org/init.el @@ -227,6 +227,8 @@ Entered on %U )) (setq org-src-preserve-indentation t) +(require 'org-tempo nil t) + (add-to-list 'org-structure-template-alist '("s" "#+begin_src ?\n\n#+end_src" "\n\n")) diff --git a/module2/ressources/rr_org/init.org b/module2/ressources/rr_org/init.org index 8ea4d6f9ab453abffa8deca1ebce94953031b7ef..d6e20cbf16c23f9ab6bac5411fba30e260da4769 100644 --- a/module2/ressources/rr_org/init.org +++ b/module2/ressources/rr_org/init.org @@ -364,6 +364,10 @@ Additional shortcuts for navigating through org-mode documents: #+end_src ** Adding source code blocks: :LUKA: +*** Enable the old template system with Orgmode 9.2 and later +#+begin_src emacs-lisp :tangle init.el +(require 'org-tempo nil t) +#+end_src *** With capital letters: To use this type