中文也补全有点烦,
已经试过的代码如下。
求高手指点该怎么改?
;; 限定数字和字母
;; try-1
;; (setq dabbrev-abbrev-char-regexp "[A-z0-9:-]")
;; (setq dabbrev-abbrev-char-regexp "[-_A-Za-z0-9]")
;; (setq dabbrev-abbrev-char-regexp "\\sw\\|[.]")
;; (setq dabbrev-abbrev-char-regexp "\\sw\\|\\s_")
;; try-2
;; (push (apply-partially #'cl-remove-if
;; (lambda (c) (string-match-p "\\`[0-9]+\\'" c)))
;; company-transformers)
;; try-3
;; (setq dabbrev-abbrev-skip-leading-regexp "[^\x00-\x7F]")
;; (setq dabbrev-abbrev-skip-leading-regexp "[^[:ascii:]]")
;; (setq dabbrev-abbrev-skip-leading-regexp "[^\x20-\x7E]")
(setq dabbrev-abbrev-skip-leading-regexp "[^\w \xC0-\xFF]")