X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=emacs.d%2Fconfig.org;h=f994a174b452fa47b8f0115d5de931a821de216e;hb=f55bf553451190a0fa6953140507412ac40d3f55;hp=13a1241f15e6563c4c8fc60ed0e46efd2e6b41d1;hpb=a6d31ff332d0a7c77be2dfe47177add52bfe2d53;p=dotfiles.git diff --git a/emacs.d/config.org b/emacs.d/config.org index 13a1241..f994a17 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -1125,6 +1125,28 @@ Also correct the face of =org-meta-line= in =org-table= (set-face-attribute 'org-level-8 nil :weight 'bold))) #+END_SRC +** Org Blog +Refer to [[http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html][org-publish-html-tutorial]] +#+BEGIN_SRC emacs-lisp :tangle yes :results silent + (require 'ox-publish) + (setq org-publish-project-alist + '( + ("org-notes" + :base-directory "~/Private/blog/" + :base-extension "org" + :publishing-directory "~/Private/publish_html" + :recursive t + :publishing-function org-html-publish-to-html + :headline-levels 4 + :auto-preamble t) + ("org-static" + :base-directory "~/Private/blog/" + :base-extension "css\\|js\\|png\\|gif\\|pdf\\|mp3\\|ogg\\|swf" + :publishing-directory "~/Private/publish_html" + :recursive t + :publishing-function org-publish-attachment) + ("org" :components ("org-notes" "org-static")))) +#+END_SRC * Magit [[https://github.com/magit/magit][Magit]] is a very cool git interface on Emacs. and Defined keys, using vi keybindings, Refer abo-abo's setting [[https://github.com/abo-abo/oremacs/blob/c5cafdcebc88afe9e73cc8bd40c49b70675509c7/modes/ora-nextmagit.el][here]] @@ -1809,7 +1831,7 @@ here on Mac, just use "open" commands to pen =.pdf=, =.html= and image files (define-key company-active-map [tab] #'company-complete-selection) (global-company-mode) ;; magig-commit is text-modeh - (setq company-global-modes '(not org-mode magit-status-mode text-mode))) + (setq company-global-modes '(not org-mode magit-status-mode text-mode eshell-mode))) (use-package company-statistics :ensure t