diff options
author | Thanos Apollo <[email protected]> | 2023-05-01 18:06:41 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-05-01 18:06:41 +0300 |
commit | f48202dec9529a8718908cccf5a6b9679f1f2113 (patch) | |
tree | 642a4f455e31633be4b5b2387411cf720035b3ab | |
parent | 2cb447f32a766b8ec6b4912594a6e47f4816f9f4 (diff) |
emacs: Redo `org-structure-template-alist`
-rwxr-xr-x | emacs.org | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -547,7 +547,6 @@ Hook with ~dired-mode~ (add-hook 'org-mode-hook 'toc-org-mode) #+end_src ** Babel - #+begin_src emacs-lisp (defadvice org-edit-src-code (around set-buffer-file-name activate compile) (let ((file-name (buffer-file-name))) ;; (1) @@ -559,16 +558,16 @@ Hook with ~dired-mode~ '((emacs-lisp . t) (python . t))) - (add-to-list 'org-structure-template-alist '("ex" . "SRC EXAMPLE")) - (add-to-list 'org-structure-template-alist '("b" . "src bash")) - (add-to-list 'org-structure-template-alist '("el" . "src emacs-lisp")) - (add-to-list 'org-structure-template-alist '("py" . "src python")) - (add-to-list 'org-structure-template-alist '("li" . "src lisp")) + + (setq org-structure-template-alist + '(("e" . "src emacs-lisp") + ("p" . "src python") + ("l" . "src lisp") + ("b" . "src bash"))) ;;Auto tangle (add-hook 'org-mode-hook 'org-auto-tangle-mode) #+end_src - * Markdown ** Theme #+begin_src emacs-lisp |