   (setq whitespace-action '(auto-cleanup))
   (setq whitespace-style '(trailing space-before-tab indentation empty space-after-tab))
   (setq coffee-tab-width 2)
-  (add-hook 'coffee-mode-hook 'whitespace-mode))
+  :hook (coffee-mode-hook whitespace-mode))
 
 ;; python
 ;; Python's flying circus support for Emacs

(use-package diff-hl
  :config
  (global-diff-hl-mode t)
  (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh))

;; treemacs
;; A tree style file explorer package

;; company-math
;; Completion backends for unicode math symbols and latex tags
(use-package company-math
  :after (company tex)
  :hook (TeX-mode-hook . (lambda ()
			   (setq-local company-backends
				       (append '((company-math-symbols-latex company-latex-commands))
					       company-backends)))))


;; beginend
;; Redefine M-< and M-> for some modes
