X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=emacs.d%2Fconfig.org;h=5cada34a5462604e55b890fac3ad653a4f6454d6;hb=6fca40e0415573e01b13de22db58a972e355c832;hp=df87ab38d7ed2b6d43d3f352daadb7ba4001b586;hpb=0ac7e1ca2a56397b76df4d4970c8326d3f11518d;p=dotfiles.git diff --git a/emacs.d/config.org b/emacs.d/config.org index df87ab3..5cada34 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -1181,51 +1181,23 @@ Also correct the face of =org-meta-line= in =org-table= #+END_SRC ** Org Blog -Refer to [[http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html][org-publish-html-tutorial]], and [[https://ogbe.net/blog/blogging_with_org.html][blogging_with_org]] +Fetch dependencies file, which is not in this repository. +#+BEGIN_SRC perl :results silent :tangle yes + print `curl https://raw.githubusercontent.com/seudut/blog/master/my-publish.el -o ./elisp/my-publish.el`; +#+END_SRC + +Load #+BEGIN_SRC emacs-lisp :tangle yes :results silent - ;; (require 'ox-publish) - - ;; ;; constants - ;; (defconst blog-dir "~/Private/blog/") - ;; ;; (defconst blog-dir (file-name-directory (or load-file-name buffer-file-name))) - ;; (defconst publish-dir (concat blog-dir "_site/")) - ;; (defconst css-file "../css/worg.css") - ;; ;; (defconst css-file (concat root-dir "css/worg.css")) - - ;; ;; To prevent inline-css when exporting html. will use external css - ;; (setq org-html-htmlize-output-type 'css) - - ;; (setq org-publish-project-alist - ;; `( - ;; ("org-notes" - ;; :base-directory ,blog-dir - ;; :base-extension "org" - ;; :publishing-directory ,publish-dir - ;; :recursive t - ;; :publishing-function org-html-publish-to-html - ;; :headline-levels 4 - ;; :section-numbers nil - ;; :auto-preamble t - ;; :auto-sitemap t ;Generate sitmap.org automagicaly... - ;; :sitemap-filename "sitemap.org" ;... call it sitemap.org (it's the default )... - ;; :sitemap-title "Sitemap" - - ;; :html-table-of-contents nil - ;; :html-postamble nil ;dont export creator auto validation info in html postamble div - ;; :html-link-home "/" - ;; :html-head ,(concat "") - ;; :html-head-include-default-style nil - ;; :html-head-include-scripts nil) - ;; ("org-static" - ;; :base-directory "~/Private/blog/" - ;; :base-extension "css\\|js\\|png\\|gif\\|pdf\\|mp3\\|ogg\\|swf" - ;; :publishing-directory ,publish-dir - ;; :recursive t - ;; :publishing-function org-publish-attachment - ;; :table-of-contents nil) - ;; ("org" :components ("org-notes" "org-static")))) + (add-to-list 'load-path "~/.emacs.d/elisp") + + (when (file-exists-p "~/.emacs.d/elisp/my-publish.el") + (require 'my-publish) + (blog-setup-project-alist "~/Private/blog/")) #+END_SRC + +Refer to [[http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html][org-publish-html-tutorial]], and [[https://ogbe.net/blog/blogging_with_org.html][blogging_with_org]] + * 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]]