emacs kana-mode with F7 katakana henkan

Posted On June 1, 2008

Filed under anthy, emacs
Tags: ,

Comments Dropped leave a response

get uim, uim-anthy, uim-el

.emacs

(require ‘uim)
(uim-mode-on) ;; for Edgy
(global-set-key “\C-o” ‘uim-mode)
(setq uim-default-im-engine “anthy”)
(uim-mode-off) ;; for Edgy
(setq uim-candidate-display-inline t)
;; apply C-h to backspace
(uim-reset-keymap)

;; uim-mod
;; when on / off, cursor color was changed
;; uim on -> japanese input on
(defadvice uim-this-command-keys (around uim-send-zenkaku-hankaku)
(setq ad-return-value `[zenkaku-hankaku]))
(defadvice uim-mode (around my-uim-mode)
ad-do-it
(setq uim-default-im-engine “anthy”)
(set-face-background ‘cursor (if ad-return-value “blue” “indian red”))
(ad-activate-regexp “uim-send-zenkaku-hankaku”)
(uim-process-input)
(ad-deactivate-regexp “uim-send-zenkaku-hankaku”))
(ad-activate-regexp “my-uim-mode”)

;write this to the end of .emacs

(uim-update-font)

.uim

(define default-widget_anthy_kana_input_method ‘action_anthy_kana)

citation(JP);

http://d.hatena.ne.jp/higepon/20080109/1199866758

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s