X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=emacs.d%2Fconfig.org;h=45182c7005b7b55dac3a04f9023a1adbbe75dcd6;hb=bba687983b20faadef0fb2524a319f2e4794c3be;hp=569e1e3c2c27a83de8e4005bf1236e8a8d871792;hpb=37c2e25acc3261f6aa74488e68eeeeb09cb53624;p=dotfiles.git diff --git a/emacs.d/config.org b/emacs.d/config.org index 569e1e3..45182c7 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -721,14 +721,12 @@ Always indents header, and hide header leading starts so that no need type =#+ST (setq org-use-speed-commands t) (setq org-completion-use-ido t) (setq org-startup-with-inline-images t) - ;; (setq org-emphasis-regexp-components - ;; ;; markup 记号前后允许中文 - ;; (list (concat " \t('\"{" "[:nonascii:]") - ;; (concat "- \t.,:!?;'\")}\\[" "[:nonascii:]") - ;; " \t\r\n,\"'" - ;; "." - ;; 1)) - ) + ;; latex preview + (setq org-startup-with-latex-preview t) + (setq org-format-latex-options (plist-put org-format-latex-options :scale 1.2))) + + (el-get-bundle hasu/emacs-ob-racket + :features ob-racket) (org-babel-do-load-languages 'org-babel-load-languages @@ -742,6 +740,7 @@ Always indents header, and hide header leading starts so that no need type =#+ST (lua . t) (lisp . t) (scheme . t) + (racket . t) (sh . t) (sqlite . t) (js . t) @@ -1047,19 +1046,29 @@ Install MacTex-basic [[http://www.tug.org/mactex/morepackages.html][MacTex-basic #+END_SRC +** Export Html +Color higlight the source code block in exported html, [[http://stackoverflow.com/questions/24082430/org-mode-no-syntax-highlighting-in-exported-html-page][org-mode-no-syntax-highlighting-in-exported-html-page]] +#+BEGIN_SRC emacs-lisp :tangle yes :results silent + (use-package htmlize + :ensure t) +#+END_SRC ** 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 - '("f" "#+BEGIN_SRC fundamental :tangle ?\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 + '("R" "#+BEGIN_SRC racket :tangle no :results output replace\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")) + (add-to-list 'org-structure-template-alist + '("C" "#+BEGIN_SRC c :tangle ?\n\n#+END_SRC")) #+END_SRC * Magit @@ -1690,7 +1699,7 @@ here on Mac, just use "open" commands to pen =.pdf=, =.html= and image files ("\\.\\(?:xcf\\)\\'" "gimp") ("\\.csv\\'" "libreoffice") ("\\.tex\\'" "pdflatex" "latex") - ("\\.\\(?:mp4\\|mkv\\|avi\\|flv\\|ogv\\)\\(?:\\.part\\)?\\'" "mplayer") + ("\\.\\(?:mp4\\|mkv\\|avi\\|rmvb\\|flv\\|ogv\\)\\(?:\\.part\\)?\\'" "mplayer") ("\\.\\(?:mp3\\|flac\\)\\'" "rhythmbox") ("\\.html?\\'" "open") ("\\.dmg\\'" "open")