                        (doom/popup-close)
                        (switch-to-buffer (car location) nil t)
                        (if (cdr location)
-                           (goto-char (cdr location))
+                           (progn
+                             (goto-char (cdr location))
+                             (recenter))
                          (message "Unable to find location in file"))))))
 
 

                       (doom/popup-close)
                       (switch-to-buffer (car location) nil t)
                       (if (cdr location)
                           (goto-char (cdr location))
                         (message "Unable to find location in file")))))

  (define-button-type 'help-face-def

                       (doom/popup-close)
                       (switch-to-buffer (car location) nil t)
                       (if (cdr location)
                           (progn
                             (goto-char (cdr location))
                             (recenter))
                         (message "Unable to find location in file")))))

  (define-button-type 'help-variable-def
