       "d" #'cider-eval-defun-at-point
       "b" #'cider-eval-buffer
       "D" #'cider-pprint-eval-defun-to-comment
-      "p" #'cider-pprint-eval-last-sexp
-      "P" #'cider-pprint-eval-last-sexp-to-comment)
+      "p" #'ox/cider-pprint-eval-toggle-defun-at-point
+      "P" #'cider-pprint-eval-last-sexp)
 
 (setq cider-known-endpoints
       '(("pitch-app/desktop-app" "localhost" "7888")))

                (hack-local-variables))))

;; (add-hook 'lisp-mode-hook #'evil-cleverparens-mode)
(add-hook 'clojure-mode-hook #'evil-cleverparens-mode)

(setq evil-snipe-override-evil-repeat-keys nil)
(setq doom-localleader-key ",")

      :map cider-repl-mode-map
      :nvm "<tab>" #'cider-repl-switch-to-other)

(defun ox/cider-pprint-eval-toggle-defun-at-point ()
  (interactive)
  (cider-pprint-eval-defun-at-point)
  (switch-to-buffer-other-window "*cider-result*"))

(map! :leader
      :map (clojure-mode-map clojurescript-mode-map)
      :prefix "e"
