 (global-set-key (kbd "C-c e") 'djcb-erc-start-or-switch) ;; ERC
 
 
- ;; use for paste clipboard image to org-mode
+;;; 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)
+  "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 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))
+  ;; (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))
+  (call-process "perl" nil nil nil "E:/git/quick.dirty.perl/Perl STH/tools/pasteIntoFile.pl" (concat "-f=" imgPath))
 
- (insert (concat "[[" imgPath "]]"))
- )
+  (insert (concat "[[" imgPath "]]"))
+  )
 
 (global-set-key (kbd "C-c v") 'paste-img)
 
-;; exports your Org documents to reveal.js presentations
-;; (require 'ox-reveal)
 
-
-;; 配置 org-publish
-(require 'org-publish-config)
-
-;; org mode customer
-(setq org-startup-indented t)
-
-
+;; run as a server mode
+(server-start)
 
 (provide 'init-local)

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


;; 半透明
(when window-system

                    (font-spec :family "Microsoft Yahei UI" :size 18)))


;;; about erc

;; joining && auto joinning
(erc-autojoin-mode t)
