+;;; auto-complete , completion , company-mode
+
+(defun my-company-config ()
+ (global-company-mode)
+ ;; annoying defaults from company.el, within
+ ;;(defvar company-active-map
+ ;;(define-key keymap [tab] 'company-complete-common)
+ (define-key company-active-map [tab] 'company-complete-selection)
+ ;;(define-key keymap [return] 'company-complete-selection)
+ (define-key company-active-map [return] nil)
+ ;;(define-key keymap (kbd "RET") 'company-complete-selection)
+ (define-key company-active-map (kbd "RET") nil)
+ ;; (define-key keymap (kbd "<down>") 'company-select-next-or-abort)
+ (define-key company-active-map (kbd "<down>") nil)
+ ;; (define-key keymap (kbd "<up>") 'company-select-previous-or-abort)
+ (define-key company-active-map (kbd "<up>") nil)
+ ;; (define-key keymap (kbd "C-h") 'company-show-doc-buffer)
+ (define-key company-active-map (kbd "C-h") nil)
+ ;;(define-key keymap "\C-w" 'company-show-location)
+ (define-key company-active-map "\C-w" nil)
+ ;;(define-key keymap "\C-s" 'company-search-candidates)
+ (define-key company-active-map "\C-s" nil)
+ ;;(define-key keymap "\C-\M-s" 'company-filter-candidates)
+ (define-key company-active-map "\C-\M-s" nil)
+
+ )
+
+(add-hook 'after-init-hook 'my-company-config)