branch: externals/dape
commit 81b77eb7ab65d1500dd49798e6c05776536be7c5
Author: milanglacier <[email protected]>
Commit: GitHub <[email protected]>

    Allow `dape-key-prefix` to be nil. (#5)
    
    Copyright-paperwork-exempt: yes.
---
 README.org | 2 ++
 dape.el    | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/README.org b/README.org
index abe9186ef0..49984823ea 100644
--- a/README.org
+++ b/README.org
@@ -36,6 +36,7 @@ Currently =Dape= does not come with any debug adapter 
configuration.
     ;; To use window configuration like gud (gdb-mi)
     ;; :init
     ;; (setq dape-buffer-window-arrangement 'gud)
+
     :config
     ;; Info buffers to the right
     ;; (setq dape-buffer-window-arrangement 'right)
@@ -49,6 +50,7 @@ Currently =Dape= does not come with any debug adapter 
configuration.
     ;; (add-hook 'dape-on-stopped-hooks 'dape-repl)
 
     ;; By default dape uses gdb keybinding prefix
+    ;; If you do not want to use any prefix, set it to nil.
     ;; (setq dape-key-prefix "\C-x\C-a")
 
     ;; Kill compile buffer on build success
diff --git a/dape.el b/dape.el
index 857f75da9b..cca2bb2949 100644
--- a/dape.el
+++ b/dape.el
@@ -3730,7 +3730,7 @@ See `eldoc-documentation-functions', for more infomation."
                dape-watch-dwim))
   (put cmd 'repeat-map 'dape-global-map))
 
-(global-set-key dape-key-prefix dape-global-map)
+(when dape-key-prefix (global-set-key dape-key-prefix dape-global-map))
 
 
 ;;; Hooks

Reply via email to