Disbale completion on return.

This commit is contained in:
tastytea 2019-04-01 01:07:09 +02:00
parent 6e88cd226c
commit a794b3dca7
2 changed files with 10 additions and 4 deletions

12
init.el
View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file.
;;; Time-stamp: <2019-03-31 19:25:20 CEST>
;;; Time-stamp: <2019-04-01 01:06:45 CEST>
;;; Commentary:
;;; I am using this file with Emacs 26, but most of it will probably work with
@ -179,6 +179,12 @@
;; Autocompletion mode with many plugins.
(unless slow-computer
(use-package company
:bind
(:map company-active-map
("<return>" . nil) ; Disable completion on return.
("RET" . nil) ; https://emacs.stackexchange.com/a/13290
("<tab>" . company-complete-selection) ; Make tab work in lists.
("TAB" . company-complete-selection))
:hook
(after-init . global-company-mode)))
@ -275,7 +281,7 @@
;; Set coding style.
(use-package cc-mode
:ensure nil ; Included in Emacs.
:init
:config
(c-add-style "tastytea"
'("bsd"
(c-basic-offset . 4)))
@ -373,7 +379,7 @@
:config
(setq doom-modeline-minor-modes t
;; doom-modeline-buffer-file-name-style 'relative-to-project
doom-modeline-buffer-file-name-style 'truncate-upto-project
doom-modeline-buffer-file-name-style 'truncate-except-project
doom-modeline-minor-modes nil)
:hook
(after-init . doom-modeline-mode))

View File

@ -1,2 +1,2 @@
127.0.0.1:51313 11194
127.0.0.1:51313 17347
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh