                     (font-spec :family "Microsoft Yahei UI" :size 18)))
 
 
-
-;; run as a server mode
-(server-start)
-
-
-;; add org-page blog system static page generate
-;; (require 'org-page)
-;; (setq op/repository-directory "e:/git/lust4life/")   ;; the repository location
-;; (setq op/site-domain "http://lust4life.github.io/")         ;; your domain
-
-;;; the configuration below you should choose one, not both
-(setq op/personal-disqus-shortname "lust4life")    ;; your disqus commenting system
-
-;; about erc
+;;; about erc
 
 ;; joining && auto joinning
 (erc-autojoin-mode t)

;; author: $+J
;; e-mail: lust4life.jun@gmail.com


;; 半透明
(when window-system

(global-set-key (kbd "C-c e") 'djcb-erc-start-or-switch) ;; ERC


;;; use for paste clipboard image to org-mode

(defun paste-img ()
  "paste the img from clipboard to org-buffer int the same directory and insert a link "
  (interactive)

  ;; (setq foldername (concat (buffer-file-name) "-IMG/"))
  ;; (setq foldername "e:/git/lust4life/img/")
  ;; (if (not (file-exists-p foldername))
  ;; (mkdir foldername))

  ;; (setq imgName (concat "img_" (format-time-string "%Y_%m_%d__%H_%M_%S") ".png"))
  (setq imgName (read-string "fileName:"))
  (setq imgPath (concat "./img/" (replace-regexp-in-string "\.[^.]*$" "" (buffer-name)) "/" imgName))

  (call-process "perl" nil nil nil "E:/git/quick.dirty.perl/Perl STH/tools/pasteIntoFile.pl" (concat "-f=" imgPath))

  (insert (concat "[[" imgPath "]]"))
  )

(global-set-key (kbd "C-c v") 'paste-img)


;; run as a server mode
(server-start)

(provide 'init-local)
