     (setq web-mode-markup-indent-offset 2)
     (setq web-mode-style-padding 2)
     (setq web-mode-script-padding 2))
-(use-package less-css-mode :ensure t)
+
+(use-package less-css-mode
+  :defer t
+  :ensure t)
+
 ;;; Colourise CSS colour literals
 (use-package rainbow-mode
   :if (eval-when-compile (>= emacs-major-version 24))
   :ensure t
-  :config
-  (dolist (hook '(css-mode-hook html-mode-hook sass-mode-hook))
-    (add-hook hook 'rainbow-mode)))
+  :hook ((css-mode html-mode sass-mode) . rainbow-mode))
 
 ;; markup formats
 (use-package yaml-mode
   :ensure t
   :mode (("\\.yml$" . yaml-mode) ("\\.sls\\'" . yaml-mode)))
-(use-package salt-mode :ensure t)
-(use-package markdown-mode :ensure t)
-(use-package toml-mode :ensure t)
+(use-package salt-mode
+  :defer t
+  :ensure t)
+(use-package markdown-mode
+  :defer t
+  :ensure t)
+(use-package toml-mode
+  :defer t
+  :ensure t)
 (use-package vue-mode
+  :defer t
   :ensure t
   :config
   (setq js-indent-level 2))
+
+(use-package ponylang-mode
+  :defer t
+  :ensure t
+  :config
+  (progn
+    (add-hook
+     'ponylang-mode-hook
+     (lambda ()
+       (set-variable 'indent-tabs-mode nil)
+       (set-variable 'tab-width 2)))))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; Other functionality (org, calendar)
-(use-package calfw :ensure t)
+(use-package calfw
+  :defer t
+  :ensure t)
 
 (use-package org
+  :defer t
   :ensure t
   :config
   (progn


(use-package xclip
  :ensure t
  :config (xclip-mode 1))

(defun set-frame-size-according-to-resolution ()

; recent files
(use-package recentf
  :ensure t
  ;; Loads after 1 second of idle time.
  :bind ("C-x C-r" . recentf-open-files)
  :init
  :config
