[表示 : 全て 最新50 1-99 101- 201- 301- 401- 501- 601- 701- 801- 901- 1001- 2ch.scのread.cgiへ]
Update time : 12/30 17:59 / Filesize : 255 KB / Number-of Response : 1023
[このスレッドの書き込みを削除する]
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧] [類似スレッド一覧]


↑キャッシュ検索、類似スレ動作を修正しました、ご迷惑をお掛けしました

Emacs Part 49



594 名前:580 mailto:sage [2016/06/13(月) 16:20:57.42 .net]
(require 'pcomplete)
(setq pcomplete-ignore-case t) ; ignore case
(setq pcomplete-cycle-cutoff-length nil) ; cycle through all completions

(defun pcomplete-text-setup ()
"Setup the dictionary completion functions for text-mode."
(interactive)
(require 'ispell)
(local-set-key [(meta control ?i)] 'pcomplete) ; bind M-C-i to pcomplete
(set (make-variable-buffer-local 'pcomplete-default-completion-function)
'find-ispell-completions)
(set (make-variable-buffer-local 'pcomplete-command-completion-function)
'find-ispell-completions)
(set (make-variable-buffer-local 'pcomplete-parse-arguments-function)
'find-current-word))
(add-hook 'text-mode-hook 'pcomplete-text-setup)

(defun find-ispell-completions ()
"Return a list of completions using the ispell dictionary."
(pcomplete-here
; preserve the cases of the original string
(mapcar (lambda (str)
(concat pcomplete-stub (substring str (length pcomplete-stub))))
(lookup-words (concat pcomplete-stub "*")
ispell-complete-word-dict))))






[ 続きを読む ] / [ 携帯版 ]

全部読む 前100 次100 最新50 [ このスレをブックマーク! 携帯に送る ] 2chのread.cgiへ
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧]( ´∀`)<255KB

read.cgi ver5.27 [feat.BBS2 +1.6] / e.0.2 (02/09/03) / eucaly.net products.
担当:undef