From 090a5755db429ac1cdc0343a22abfcd9e16c9152 Mon Sep 17 00:00:00 2001 From: Julian T Date: Fri, 10 Sep 2021 21:47:22 +0200 Subject: Run company in elisp-mode and redefine list-buffers --- emacs/.emacs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'emacs/.emacs') diff --git a/emacs/.emacs b/emacs/.emacs index 88da9cd..f051328 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -29,11 +29,13 @@ (setq evil-want-keybinding nil) (setq evil-want-C-u-scroll t) :config + (evil-mode 1)) (use-package evil-collection :after evil :ensure t + :config (evil-collection-init)) @@ -46,7 +48,6 @@ (toggle-scroll-bar -1) ;; Completion -;; (add-hook 'after-init-hook 'global-company-mode) (require 'lsp-mode) (mapc (lambda (mode) (add-hook mode #'lsp)) (list @@ -54,6 +55,12 @@ 'python-mode-hook )) +(mapc (lambda (mode) (add-hook mode 'company-mode)) (list + 'emacs-lisp-mode-hook + )) + +;; Custom keybinding +(define-key (current-global-map) [remap list-buffers] 'ibuffer) (custom-set-variables ;; custom-set-variables was added by Custom. -- cgit v1.2.3