   :bind
   ("M-/" . company-complete)
   )
+(use-package company-posframe
+  :ensure t
+  :after (company )
+  :init (company-posframe-mode 1)
+  :config
+  (require 'desktop) ;this line is needed.
+  (push '(company-posframe-mode . nil)
+      desktop-minor-mode-table)
+  )
 
 (use-package auto-complete
   :ensure t

  (setq pyim-default-scheme 'quanpin)
  ;; 开启拼音搜索功能
  (pyim-isearch-mode 1)
  ;; 使用 pupup-el 来绘制选词框, 如果用 emacs26, 建议设置
  ;;   ;; 为 'posframe, 速度很快并且菜单不会变形，不过需要用户
  ;;   ;; 手动安装 posframe 包。
  (setq pyim-page-tooltip 'posframe)
  (setq pyim-page-style 'one-line)
  ;;   ;; 选词框显示5个候选词
  (setq pyim-page-length 5)
  ;;开启拼音联想
  (setq pyim-enable-words-predict '(pinyin-similar pinyin-shouzimu))
  ;;设置模糊搜索
  (setq pyim-fuzzy-pinyin-alist '(("en" "eng") ("in" "ing") ("an" "ang") ("z" "zh") ("c" "ch") ("s" "sh") ("uan" "uang")))
  (setq pyim-punctuation-translate-p '(auto yes no))   ;中文使用全角标点，英文使用半角标点。
  )


  (ac-config-default)
  (global-auto-complete-mode)
  )
;; (use-package helm-posframe
;;   :ensure t
;;   :after ( helm)
;;   :init 
;;   (helm-posframe-enable)
;;   :config
;;   (setq helm-posframe-parameters
;;       '((left-fringe . 10)
;; 	(right-fringe . 10)))
;;   )

 (use-package semantic
  :init
  (setq semantic-default-submodes
      '(;; Perform semantic actions during idle time
