From 6028a22ce2765b19de9df47f8708cb819dcc5d34 Mon Sep 17 00:00:00 2001 From: bqv Date: Sun, 3 Jul 2022 12:42:11 +0100 Subject: [PATCH] tooling --- .dir-locals.el | 3 ++- debug.el | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.dir-locals.el b/.dir-locals.el index 7fe8606..4213fe5 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -29,5 +29,6 @@ (eval . (setq-local tags-table-list (expand-file-name ".git/tags" (projectile-project-root)))) (flycheck-clang-warnings . ("all" "extra" "error-implicit-function-declaration" "no-missing-field-initializers")) (flycheck-clang-language-standard . "c++20") - (flycheck-checker . c/c++-clang) + ;(flycheck-checker . c/c++-clang) + (flycheck-checker . lsp) (projectile-project-compilation-cmd . "bear -- make -j8"))) diff --git a/debug.el b/debug.el index 7f7fb58..852e57a 100644 --- a/debug.el +++ b/debug.el @@ -1,12 +1,12 @@ (let ((vterm-shell "/bin/sh -c 'trap \"\" SIGINT ; read < /dev/zero'")) (with-current-buffer (vterm t) (let ((process (get-buffer-process (current-buffer)))) - (unless (boundp 'gud-comint-buffer) + (unless (and (boundp 'gud-comint-buffer) gud-comint-buffer) (gdb (string-join `("gdb" "-i=mi" "-ex 'handle SIGPIPE nostop noprint pass'" - ,(concat "--args weechat -a -P 'alias,buflist,exec,irc' -r '/plugin load " + ,(concat "--args weechat -a -P alias,buflist,exec,irc," (expand-file-name "xmpp.so" (projectile-project-root)) - "'; /debug tags")) + "; /debug tags")) " "))) (dolist (line (list (concat "tty " (process-tty-name process))