X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=emacs.d%2Fconfig.org;h=17d7b026cf9c2929999dc01d4eb89698c1ee37b1;hb=9d9379e9edb9a1d7ec3ad25617c0bba6d4522921;hp=f14bd9fdc40098f0b4d7f930499a333b34e20be9;hpb=51327addc48e95cc73f92813135603b94b1d168b;p=dotfiles.git diff --git a/emacs.d/config.org b/emacs.d/config.org index f14bd9f..17d7b02 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -28,6 +28,12 @@ Set system PATH and emacs exec path (package-initialize) #+END_SRC +** My constant +#+BEGIN_SRC emacs-lisp :tangle yes :results silent + (defconst my-name "Peng Li") + (defconst my-email "seudut@gmail.com") +#+END_SRC + ** General Setting *** scroll bar, tool-bar and menu-bar #+BEGIN_SRC emacs-lisp :tangle yes :results silent @@ -1182,15 +1188,17 @@ Also correct the face of =org-meta-line= in =org-table= ** Org Blog Fetch dependencies file, which is not in this repository. -#+BEGIN_SRC perl :results silent - print `curl https://raw.githubusercontent.com/seudut/blog/master/publish.el -o ./elisp/publish.el`; +#+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 (add-to-list 'load-path "~/.emacs.d/elisp") - (require 'publish) + (when (file-exists-p "~/.emacs.d/elisp/my-publish.el") + (require 'my-publish) + (blog-setup-project-alist "~/Private/blog/")) #+END_SRC @@ -1206,7 +1214,7 @@ and Defined keys, using vi keybindings, Refer abo-abo's setting [[https://github ;; don't ask me to confirm the unsaved change (setq magit-save-repository-buffers nil) ;; default is 50 - (setq git-commit-summary-max-length 80) + (setq git-commit-summary-max-length 100) :commands magit-status magit-blame :config (dolist (map (list magit-status-mode-map @@ -2513,16 +2521,16 @@ Emacs lisp auto-insert, based on the default module in =autoinsert.el=, but repl ** Org file template #+BEGIN_SRC emacs-lisp :tangle yes :results silent - (eval-after-load 'autoinsert - '(define-auto-insert '("\\.\\(org\\)\\'" . "Org-mode skeleton") - '( - "title: " - "#+TITLE: " str (make-string 30 ?\s) > \n - "#+AUTHOR: Peng Li\n" - "#+EMAIL: seudut@gmail.com\n" - "#+DATE: " (shell-command-to-string "echo -n $(date +%Y-%m-%d)") > \n - > \n - > _))) + ;; (eval-after-load 'autoinsert + ;; '(define-auto-insert '("\\.\\(org\\)\\'" . "Org-mode skeleton") + ;; '( + ;; "title: " + ;; "#+TITLE: " str (make-string 30 ?\s) > \n + ;; "#+AUTHOR: Peng Li\n" + ;; "#+EMAIL: seudut@gmail.com\n" + ;; "#+DATE: " (shell-command-to-string "echo -n $(date +%Y-%m-%d)") > \n + ;; > \n + ;; > _))) #+END_SRC * Markdown mode @@ -2824,6 +2832,7 @@ config from [[http://www.kirang.in/2014/11/13/emacs-as-email-client-with-offline :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