summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnosis.el b/gnosis.el
index aac6840..569c466 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1128,7 +1128,10 @@ changes."
(interactive)
(eval-buffer)
(kill-buffer)
- (exit-recursive-edit))
+ ;; exit recursive edit if we are in one
+ (if (>= (recursion-depth) 1)
+ (exit-recursive-edit)
+ (gnosis-dashboard)))
(defvar-keymap gnosis-edit-mode-map
:doc "gnosis-edit keymap"