;;; このときidoが使うwindowの高さは大きくした方がいい (setq ido-max-window-height 0.75) ;;; あいまいマッチは入れておこう (setq ido-enable-flex-matching t) ;;; 本格的にidoを使いたい人は有効にしよう ;; (ido-mode 1) (ido-vertical-mode 1) (setq ido-vertical-define-keys 'C-n-and-C-p-only) ;;; 改行が含まれていない場合はidoで候補選択 (setq bbyac-max-chars 99999) (defun bbyac--display-matches--use-ido (orig strlist) (cond ((null (cdr strlist)) (car strlist)) ((cl-notany #'bbyac--string-multiline-p strlist) (ido-completing-read "Bbyac: " strlist nil t)) (t (apply orig strlist)))) (advice-add 'bbyac--display-matches :around 'bbyac--display-matches--use-ido) (bbyac-global-mode 1) (define-key bbyac-mode-map (kbd "C-@") 'bbyac-expand-symbols) ;;; this-is-a-very-long-variable-for-example ;; tex ;; th