         (make-local-variable 'org-link-types)
         (make-local-variable 'org-link-protocols)
         (org-add-link-type "https" 'spacemacs//space-doc-open))
-
     (kill-local-variable 'org-link-types)
     (kill-local-variable 'org-link-protocols))
   ;; Trigger `org-mode' internal updates.

                       'face
                       (spacemacs//space-doc-cache-btn-marker-face
                        spacemacs--space-doc-cache)))

      ;; If inside table.
      (if (save-excursion
            (goto-char begin)

  (org-add-link-type nil))

(defun spacemacs//space-doc-open (path)
  "Open PATH link.
If PATH argument is a link to an .org file that is located in the Spacemacs
GitHub repository then visit the local copy of the file with
`spacemacs/view-org-file'.
Open all other links with `browse-url'."
  (let ((git-url-root-regexp
         (concat "\\/\\/github\\.com\\/syl20bnr\\/spacemacs\\/blob"
