wok-6.x view emacs-pkg-text-translator/stuff/90-text-translator-init.el @ rev 18397
open-vm-tools: possibly working version for linux64 after evil hacks
author | Nathan Neulinger <nneul@neulinger.org> |
---|---|
date | Sat Sep 19 03:20:30 2015 +0000 (2015-09-19) |
parents | |
children |
line source
1 ;; Register
3 (require 'text-translator)
6 ;; set global key
8 (global-set-key "\C-x\M-t" 'text-translator)
9 (global-set-key "\C-x\M-T" 'text-translator-translate-last-string)
10 ;; translate all sites.
11 ;; for example, if you specify "enja", text-translator use google.com_enja, yahoo.com_enja, ... .
12 (global-set-key "\C-x\M-a" 'text-translator-all)
15 ;; add keys to major-mode
17 (add-hook
18 'text-translator-mode-hook
19 (lambda()
20 ;; if you do not change prefix-key, it is executed by C-c M-a
21 (define-key text-translator-mode-pkey-map "\M-a" 'text-translator-translate-recent-type)))
24 ;; use proxy
26 ;; ;; if you are setting environment variables HTTP_PROXY,
27 ;; ;; you have not to set this.
28 ;; (setq text-translator-proxy-server "proxy.hogehoge.com")
29 ;; (setq text-translator-proxy-port 8080)