From bb3cd2acea5053490ab28b57c14efc69f7e67b67 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Sat, 20 Aug 2016 11:49:36 +0800 Subject: [PATCH] emacs - org template add --- emacs.d/config.org | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/emacs.d/config.org b/emacs.d/config.org index 8e6bbe7..bebd43e 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -985,14 +985,16 @@ Install MacTex-basic [[http://www.tug.org/mactex/morepackages.html][MacTex-basic ** 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 :results output replace\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")) + (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 :results output replace\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")) + (add-to-list 'org-structure-template-alist + '("f" "#+BEGIN_SRC fundamental :tangle ?\n\n#+END_SRC")) #+END_SRC * Magit @@ -2479,7 +2481,8 @@ Most use =C-o C-o= to switch buffers; =C-o x, v= to split window; =C-o o= to del ("m" bookmark-jump-other-window nil :exit t) ("M" bookmark-set nil :exit t) ("g" magit-status nil :exit t) - ("p" paradox-list-packages nil :exit t) + ("p" persp-switch :exit t) + ;; ("p" paradox-list-packages nil :exit t) ;; quit ("q" nil "cancel") -- 2.11.0