summaryrefslogtreecommitdiff
path: root/emacs.org
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-05-01 18:06:41 +0300
committerThanos Apollo <[email protected]>2023-05-01 18:06:41 +0300
commitf48202dec9529a8718908cccf5a6b9679f1f2113 (patch)
tree642a4f455e31633be4b5b2387411cf720035b3ab /emacs.org
parent2cb447f32a766b8ec6b4912594a6e47f4816f9f4 (diff)
emacs: Redo `org-structure-template-alist`
Diffstat (limited to 'emacs.org')
-rwxr-xr-xemacs.org13
1 files changed, 6 insertions, 7 deletions
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