X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;ds=sidebyside;f=emacs.d%2Fconfig.org;h=df87ab38d7ed2b6d43d3f352daadb7ba4001b586;hb=0ac7e1ca2a56397b76df4d4970c8326d3f11518d;hp=7460b775f85f3ccb287b9726bb17e4c68b05add0;hpb=6254bbc17b54f8fffe80d758c3d57ca83d67f12e;p=dotfiles.git diff --git a/emacs.d/config.org b/emacs.d/config.org index 7460b77..df87ab3 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -35,11 +35,8 @@ Set system PATH and emacs exec path (progn (scroll-bar-mode 0) (tool-bar-mode 0) - (menu-bar-mode 1))) - - ;; (if window-system - ;; (menu-bar-mode 1) - ;; (menu-bar-mode 0)) + (menu-bar-mode 1)) + (menu-bar-mode 0)) (setq debug-on-error t) (setq inhibit-startup-message t) @@ -1186,37 +1183,47 @@ Also correct the face of =org-meta-line= in =org-table= ** 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]] #+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 - :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 "" - :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 "~/Private/publish_html" - :recursive t - :publishing-function org-publish-attachment - :table-of-contents nil) - ("org" :components ("org-notes" "org-static")))) + ;; (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")))) #+END_SRC * Magit @@ -2839,6 +2846,14 @@ config from [[http://www.kirang.in/2014/11/13/emacs-as-email-client-with-offline (add-hook 'ediff-suspend-hook 'ediff-toggle-wide-display)) #+END_SRC +* Modes +** Yaml-mode +#+BEGIN_SRC emacs-lisp :tangle yes :results silent + (use-package yaml-mode + :ensure t + :init + (add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode))) +#+END_SRC * Entertainment ** GnuGo Play Go in Emacs, gnugo xpm refert [[https://github.com/okanotor/dotemacs/blob/f95b774cb292d1169748bc0a62ba647bbd8c0652/etc/my-inits/my-inits-gnugo.el][to here]]. start at image display mode and grid mode @@ -3502,6 +3517,7 @@ Refer [[https://github.com/fnwiya/dotfiles/blob/c9ca79f1b22c919d9f4c3a0f944ba828 (global-set-key (kbd "C-w") 'sd/kill-region-or-backward-kill-word) #+END_SRC + * Developing ** perspeen #+BEGIN_SRC emacs-lisp :tangle yes :results silent @@ -3530,6 +3546,7 @@ Refer [[https://github.com/fnwiya/dotfiles/blob/c9ca79f1b22c919d9f4c3a0f944ba828 (define-key perspeen-mode-map (kbd "s-t") 'perspeen-tab-create-tab) (define-key perspeen-mode-map (kbd "s-t") 'perspeen-tab-create-tab)) #+END_SRC + * TODO todolist ** Rucket ** player video on iphone for