          ("C-; d" . multi-term-dedicated-toggle)
          ("C-; n" . multi-term-next)
          ("C-; p" . multi-term-prev))
+  :hook (term-mode . user-term-mode-hook)
   :init
   (csetq multi-term-dedicated-select-after-open-p t)
 
   (defun user-term-mode-hook ()
     (company-mode -1)
-    (setq-local scroll-margin 0))
-
-  (add-hook 'term-mode-hook #'user-term-mode-hook))
+    (setq-local scroll-margin 0)))
 
 (use-package eshell
   :defer t
+  :hook (eshell-mode . user-eshell-hook)
   :config
   (defun user-eshell-hook ()
     (company-mode -1)
-    (setq-local scroll-margin 0))
-
-  (add-hook 'eshell-mode-hook #'user-eshell-hook))
+    (setq-local scroll-margin 0)))
 
 ;; Error checking
 (use-package flycheck :ensure t

  (csetq company-selection-wrap-around t)

  (use-package user-completion
    :bind (("C-c /" . user-complete-line)))

  (add-hook 'after-init-hook 'global-company-mode))

;; (csetq completion-ignore-case t)



(use-package web-mode :ensure t
  :defer t
  :hook (web-mode . user-web-mode-hook)
  :mode
  (("\\.phtml\\'" . web-mode)
   ("\\.tpl\\.php\\'" . web-mode)
