Commit f96b236 1 parent 3ddd2f4 commit f96b236 Copy full SHA for f96b236
File tree 1 file changed +13
-9
lines changed
1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change 79
79
(progn
80
80
(spacemacs|diminish company-mode " ⓐ" " a" )
81
81
; ; key bindings
82
- (define-key company-active-map [tab] 'company-complete-common )
83
- (define-key company-active-map (kbd " TAB" ) 'company-complete-common )
84
- (define-key company-active-map (kbd " <tab>" ) 'company-complete-common )
85
- (define-key company-active-map [escape] 'company-abort )
86
- (define-key company-active-map (kbd " C-j" ) 'company-select-next )
87
- (define-key company-active-map (kbd " C-k" ) 'company-select-previous )
88
- (define-key company-active-map (kbd " C-/" ) 'company-search-candidates )
89
- (define-key company-active-map (kbd " C-M-/" ) 'company-filter-candidates )
90
- (define-key company-active-map (kbd " C-d" ) 'company-show-doc-buffer )
82
+ ; ; use TAB to auto-complete instead of RET
83
+ (let ((map company-active-map))
84
+ (define-key map [return] 'nil )
85
+ (define-key map (kbd " RET" ) 'nil )
86
+ (define-key map [tab] 'company-complete-common )
87
+ (define-key map (kbd " TAB" ) 'company-complete-common )
88
+ (define-key map (kbd " <tab>" ) 'company-complete-common )
89
+ (define-key map [escape] 'company-abort )
90
+ (define-key map (kbd " C-j" ) 'company-select-next )
91
+ (define-key map (kbd " C-k" ) 'company-select-previous )
92
+ (define-key map (kbd " C-/" ) 'company-search-candidates )
93
+ (define-key map (kbd " C-M-/" ) 'company-filter-candidates )
94
+ (define-key map (kbd " C-d" ) 'company-show-doc-buffer ))
91
95
; ; Nicer looking faces
92
96
(custom-set-faces
93
97
'(company-tooltip-common
You can’t perform that action at this time.
0 commit comments