From 605b0a5f4ce02e3a1fa2b1d86eaeec6d6152e691 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 26 Jul 2019 17:00:38 +0200 Subject: Emacs: make tab key also indent --- emacs/.emacs.d/main.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 1fe9d0d..8b448ec 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -347,7 +347,7 @@ With two prefix arguments, write out the day and month name." (company-auto-complete #'company-explicit-action-p) (company-auto-complete-chars '(?\ ?\( ?\) ?.))) :general (:states 'insert - "TAB" #'company-complete)) + "TAB" #'company-indent-or-complete-common)) (use-package all-the-icons) @@ -454,7 +454,8 @@ With two prefix arguments, write out the day and month name." ;;; Editing -(setq-default indent-tabs-mode nil) +(setq-default indent-tabs-mode nil + tab-always-indent 'complete) ;;; Major modes -- cgit 1.4.1