From ab7f6332203358f870e8263539ee8eb0e59e80a0 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 20 Jan 2019 02:28:12 -0500 Subject: [PATCH] Move normal and sh indent config to correct use-package blocks --- .emacs.d/init.el | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index ad20eb9..fba0f76 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1,11 +1,4 @@ ;;; Emacs Config -;;;; indentation -(setq sgml-basic-offset 4 - standard-indent 2) -(setq-default tab-width 4 - indent-tabs-mode nil) -(add-hook 'sh-mode-hook (lambda () (setq tab-width 4))) - ;;;; various options (setq read-file-name-completion-ignore-case t inhibit-startup-screen t @@ -55,6 +48,16 @@ (bind-key "s-t" 'open-thunar-in-current-directory) ;;;; internal packages +(use-package indent + (setq standard-indent 2) + (setq-default tab-width 4 + indent-tabs-mode nil)) + +(use-package sh-script + :defer + :config + (add-hook 'sh-mode-hook (lambda () (setq tab-width 4)))) + (use-package ibuffer :bind ("C-x C-b" . ibuffer) :config @@ -67,6 +70,10 @@ (ibuffer-auto-mode 1) (setq ibuffer-show-empty-filter-groups nil)))) +(use-package sgml-mode + :config + (setq sgml-basic-offset 4)) + (use-package compile :commands (compile recompile) :bind (("C-z" . recompile)