Made debugger-keybinding work.
This commit is contained in:
parent
6309e54011
commit
a588f1ba62
14
init.el
14
init.el
|
@ -1,5 +1,5 @@
|
||||||
;;; init.el --- tastytea's Emacs init file.
|
;;; 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:
|
;;; Commentary:
|
||||||
;; I am using this file with Emacs 26, but most of it will probably work with
|
;; 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
|
:after irony
|
||||||
:custom
|
:custom
|
||||||
(cmake-ide-build-dir "build")
|
(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.
|
(cmake-ide-cmake-opts "") ; Use the already configured options.
|
||||||
:config
|
:config
|
||||||
(cmake-ide-setup))
|
(cmake-ide-setup))
|
||||||
|
@ -382,11 +379,14 @@ With argument, do this that many times."
|
||||||
(use-package realgud
|
(use-package realgud
|
||||||
:after cc-mode
|
:after cc-mode
|
||||||
:config
|
:config
|
||||||
(defun my/load-realgud ()
|
(defun my/launch-gdb ()
|
||||||
(load-library "realgud"))
|
"Load realgud and launch gdb."
|
||||||
|
(interactive)
|
||||||
|
(load-library "realgud")
|
||||||
|
(realgud:gdb))
|
||||||
:bind
|
:bind
|
||||||
(:map c-mode-base-map
|
(:map c-mode-base-map
|
||||||
("C-c g" . my/load-realgud)))
|
("g" . my/launch-gdb)))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;; Appearance ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;; Appearance ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Hide toolbar.
|
;; Hide toolbar.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user