         ("b" . 'exordium-magit-blame)
         ("c" . (function magit-clone))
    :map magit-status-mode-map
-        ("q" . 'magit-quit-session))
+        ("q" . 'exordium-magit-quit-session))
 
   :hook
   (magit-status-mode . exordium-magit--dont-insert-symbol-for-search)

          (call-interactively 'magit-log-current)
        (call-interactively 'magit-log))))

  (defun magit-quit-session ()
    "Restores the previous window configuration and kills the magit buffer"
    (interactive)
    (let ((configuration (when (boundp 'exordium--magit-fullscreen-configuration)
                           exordium--magit-fullscreen-configuration)))
      (kill-buffer)
      (when (and configuration
                 (window-configuration-p (car configuration)))
        (set-window-configuration (car configuration))
        (goto-char (cadr configuration)))))

  (defun exordium-magit--dont-insert-symbol-for-search ()
    "Don't insert a symbol at point when starting ag or rg."

;;; the frame, and then restore the old window configuration when you quit out
;;; of magit.
  (when exordium-use-magit-fullscreen
    (advice-add 'magit-status :around #'exordium--magit-fullscreen)
    (advice-add 'exordium-magit-log :around #'exordium--magit-fullscreen)
    (advice-add 'magit-status-setup-buffer :around #'exordium--magit-fullscreen)
