Made debugger-keybinding work.

This commit is contained in:
tastytea 2019-05-15 02:59:16 +02:00
parent 6309e54011
commit a588f1ba62
1 changed files with 7 additions and 7 deletions

14
init.el
View File

@ -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.