summary refs log tree commit diff
path: root/emacs/custom/fcuny-ui.el
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-04-04 12:59:58 -0700
committerFranck Cuny <franck@fcuny.net>2021-04-04 12:59:58 -0700
commit3778c840afecec735758fbd217dd3021c5337233 (patch)
treeab4a65c9259fa7d7a5e5550cdf9b4f6afdb57fad /emacs/custom/fcuny-ui.el
parentsystemd: rsync music to the NAS (diff)
downloademacs.d-3778c840afecec735758fbd217dd3021c5337233.tar.gz
emacs: configure dap-mode and compile-mode
Debug Adapter Protocol (DAP) is wire protocol to communicate between a
client and debug server. This is similar to LSP, but for debuggers.

This initial configuration focuses on enabling the mode and setting the
layout for the various buffers (in this case I want the different
buffers on the right screen and keep the main part focused on the code).
I also disable some widget to use the debugger with hydra.

There's still a number of things that are incomplete when it comes to
integrate DAP and delve (the go debugger): there's no way to call
functions, to have access to the variables, etc. But this is a good
start though, to debug simple problems without relying on print
statement.

This also update the configuration for =go= so that =M-x compile=, when
editing a go file, by default will use =go build=. This is not what I
always need / want but this is a good default.
Diffstat (limited to 'emacs/custom/fcuny-ui.el')
-rw-r--r--emacs/custom/fcuny-ui.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs/custom/fcuny-ui.el b/emacs/custom/fcuny-ui.el
index 693c0a9..c350088 100644
--- a/emacs/custom/fcuny-ui.el
+++ b/emacs/custom/fcuny-ui.el
@@ -84,4 +84,8 @@
   (setq uniquify-buffer-name-style 'forward)
   (setq uniquify-separator "/"))
 
+;; required for dap-mode and dap-ui-mode
+(use-package posframe
+  :ensure t)
+
 (provide 'fcuny-ui)