From: Peng Li Date: Thu, 11 Aug 2016 12:59:08 +0000 (+0800) Subject: emacs - org-mode structure X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=e7567e80481b35d3266dd255a3e00aa92cd0deb0;p=dotfiles.git emacs - org-mode structure --- diff --git a/emacs.d/config.org b/emacs.d/config.org index f4e1b6e..672d086 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -987,17 +987,17 @@ Install MacTex-basic [[http://www.tug.org/mactex/morepackages.html][MacTex-basic #+END_SRC -** others +** Org structure template extend org-mode's easy templates, refer to [[http://coldnew.github.io/coldnew-emacs/#orgheadline94][Extend org-modes' esay templates]] #+BEGIN_SRC emacs-lisp :tangle yes :results silent - (add-to-list 'org-structure-template-alist '("E" "#+BEGIN_SRC emacs-lisp :tangle yes :results silent\n?\n#+END_SRC")) (add-to-list 'org-structure-template-alist '("S" "#+BEGIN_SRC sh\n?\n#+END_SRC")) (add-to-list 'org-structure-template-alist '("p" "#+BEGIN_SRC plantuml :file uml.png \n?\n#+END_SRC")) - + (add-to-list 'org-structure-template-alist + '("P" "#+BEGIN_SRC perl \n?\n#+END_SRC")) #+END_SRC * Magit diff --git a/emacs.d/init.el b/emacs.d/init.el index 52cfca2..813f41a 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -3,6 +3,6 @@ ;; installed packages. Don't delete this line. If you don't want it, ;; just comment it out by adding a semicolon to the start of the line. ;; You may delete these explanatory comments. -(package-initialize) +;(package-initialize) (org-babel-load-file "~/.emacs.d/config.org")