summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2019-07-26 17:00:38 +0200
committerAlan Pearce2019-07-26 17:00:38 +0200
commit605b0a5f4ce02e3a1fa2b1d86eaeec6d6152e691 (patch)
tree6ad74c450c2fd738f61656e4e7d1ab1e5170db8a /emacs
parent56e45cd5f7cb68dfab59628c1aab3ed7f08dcec3 (diff)
downloadnixfiles-605b0a5f4ce02e3a1fa2b1d86eaeec6d6152e691.tar.lz
nixfiles-605b0a5f4ce02e3a1fa2b1d86eaeec6d6152e691.tar.zst
nixfiles-605b0a5f4ce02e3a1fa2b1d86eaeec6d6152e691.zip
Emacs: make tab key also indent
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 1fe9d0d0..8b448ec7 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