summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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