atykhonov/google-translate

the google-translate.el error

earthIsAPrisonIfYouNotAwareItCanNotOut opened this issue · 0 comments

I want to add google-translate.el in this config from MELPA, some message show that the init config can't work:

Warning (initialization): An error occurred while loading /Users/sb/.emacs.d/init.el': End of file during parsing: /Users/sb/.emacs.d/lisp/init-google-translate.el To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the--debug-init' option to view a complete error backtrace.

the content of init-google-translate.el is:
;; google-translate packages
(require-package 'google-translate)
(require-package 'google-translate-smooth-ui)
;; shotcut
(global-set-key "\C-ct" 'google-translate-smooth-translate)
;; translate en <-> cn
(setq google-translate-translation-directions-alist '(("en" . "cn") ("cn" . "en"))
(provide 'init-google-translate)

init.el:
(require 'init-google-translate)
what happened?