From a588f1ba62feb1ea4fe4c0ffdcb903bf8ebda92d Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 15 May 2019 02:59:16 +0200 Subject: [PATCH] Made debugger-keybinding work. --- init.el | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index 5454997..6adebc2 100644 --- a/init.el +++ b/init.el @@ -1,5 +1,5 @@ ;;; init.el --- tastytea's Emacs init file. -;; Time-stamp: <2019-05-15T00:38:30+00:00> +;; Time-stamp: <2019-05-15T00:59:10+00:00> ;;; Commentary: ;; I am using this file with Emacs 26, but most of it will probably work with @@ -370,9 +370,6 @@ With argument, do this that many times." :after irony :custom (cmake-ide-build-dir "build") - ;; (cmake-ide-cmake-args '("-DCMAKE_BUILD_TYPE=Debug" - ;; "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON" - ;; "-GUnix Makefiles")) (cmake-ide-cmake-opts "") ; Use the already configured options. :config (cmake-ide-setup)) @@ -382,11 +379,14 @@ With argument, do this that many times." (use-package realgud :after cc-mode :config - (defun my/load-realgud () - (load-library "realgud")) + (defun my/launch-gdb () + "Load realgud and launch gdb." + (interactive) + (load-library "realgud") + (realgud:gdb)) :bind (:map c-mode-base-map - ("C-c g" . my/load-realgud))) + ("g" . my/launch-gdb))) ;;;;;;;;;;;;;;;;;;;; Appearance ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Hide toolbar.