From f48202dec9529a8718908cccf5a6b9679f1f2113 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Mon, 1 May 2023 18:06:41 +0300 Subject: emacs: Redo `org-structure-template-alist` --- emacs.org | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'emacs.org') diff --git a/emacs.org b/emacs.org index 2c93ac7..2326b50 100755 --- a/emacs.org +++ b/emacs.org @@ -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 -- cgit v1.2.3