 (require 'chm-view)
 (setq browse-url-browser-function 'w3m-browse-url)
 
-;; Chinese pyim
-(require 'chinese-pyim)
-(require 'chinese-pyim-wbdict)
+;; Chinese wbim
+(autoload 'chinese-wbim-use-package "chinese-wbim" "Another emacs input method")
+;; Tooltip ʱ
+(setq chinese-wbim-use-tooltip nil)
 
-;;(setq default-input-method "chinese-pyim")
-(setq pyim-default-scheme 'wubi)
-;;(setq pyim-use-tooltip 'popup)
-(chinese-pyim-wbdict-gb2312-enable) ; gb2312 version
-(global-set-key (kbd "C-\\") 'toggle-input-method)
-(add-hook 'emacs-startup-hook
-            #'(lambda () (pyim-restart-1 t)))
+(register-input-method
+ "chinese-wbim" "euc-cn" 'chinese-wbim-use-package
+ "" "뷨" "wb.txt")
+
+;;  ; ʱӢ
+(require 'chinese-wbim-extra)
+(global-set-key ";" 'chinese-wbim-insert-ascii)
+
+;Ĭ뷨
+(setq default-input-method 'chinese-wbim)
 
 ;; get rid of menu bar in terminal emacs
 (if (equal window-system nil)

(unless package-archive-contents
    (package-refresh-contents))
;; packages want to install
(setq package-list '(slime auto-complete nodejs-repl chm-view chinese-pyim chinese-pyim-wbdict
                           ido color-theme tidy emmet-mode web-mode))
;; install package
(dolist (package package-list)
    (unless (package-installed-p package)

(add-to-list 'auto-mode-alist '("\\.djhtml\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.vue\\'" . web-mode))

(setq web-mode-code-indent-offset 2)
(setq web-mode-css-indent-offset 2)
(setq web-mode-markup-indent-offset 2)

;;(global-flycheck-mode)
