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)