emacs - org-mode structure
authorPeng Li <seudut@gmail.com>
Thu, 11 Aug 2016 12:59:08 +0000 (20:59 +0800)
committerPeng Li <seudut@gmail.com>
Fri, 12 Aug 2016 16:13:55 +0000 (00:13 +0800)
emacs.d/config.org
emacs.d/init.el

index f4e1b6e..672d086 100644 (file)
@@ -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
index 52cfca2..813f41a 100644 (file)
@@ -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")