     (defun my-disable-yas-in-term ()
       (yas-minor-mode -1))
     (add-to-list 'yas-snippet-dirs "~/.emacs.d/snippets/")
-    (yas-global-mode)
+    (add-hook 'after-init-hook #'yas-global-mode)
     (add-hook 'term-mode-hook #'my-disable-yas-in-term)))
 
 (use-package undo-tree

  (use-package company-restclient))

;;;
;;; Custom macros
;;;

;; the following two functions are adapted from the similarly named

    (url-retrieve url display-rfc)))

(defun my-rfc-lookup-html (rfc-num)
  "Look up RFC-NUM using tools.ietf.org."
  (interactive (list
                (read-number "RFC number:" (thing-at-point 'number))))
  (let ((url (format "https://tools.ietf.org/html/rfc%s.txt" rfc-num)))
