Created
April 21, 2013 03:19
-
-
Save sluchin/5428326 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 日本語で検索するための設定 | |
(when (locate-library "skk-isearch") | |
(autoload 'skk-isearch-mode-setup "skk-isearch" | |
"Hook function called when skk isearch begin." t) | |
(autoload 'skk-isearch-mode-cleanup "skk-isearch" | |
"Hook function called when skk isearch is done." t) | |
(add-hook 'isearch-mode-hook 'skk-isearch-mode-setup) | |
(add-hook 'isearch-mode-end-hook 'skk-isearch-mode-cleanup) | |
(eval-after-load "skk-isearch" | |
'(progn | |
;; 起動時アスキーモード | |
(when (boundp 'skk-isearch-start-mode) | |
(setq skk-isearch-start-mode 'latin)) | |
;; 変換でエラーを捕捉しない | |
(defadvice skk-isearch-wrapper | |
(around skk-isearch-wrapper-nil (&rest arg) activate compile) | |
(if (null (car arg)) ; (nil) の場合 | |
(let ((skk-dcomp-multiple-activate nil)) | |
(ignore-errors ad-do-it)) ; エラーを無視する | |
ad-do-it)) | |
(message "Loading %s (skk-isearch)...done" this-file-name)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment