From a9fe2bd19d576b7dcf38b252def3d16faabcb937 Mon Sep 17 00:00:00 2001 From: ALittlePatate Date: Mon, 23 Oct 2023 08:36:20 +0200 Subject: [PATCH] updated .emacs --- .emacs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.emacs b/.emacs index a67fe3a..14023f1 100755 --- a/.emacs +++ b/.emacs @@ -37,10 +37,12 @@ (use-package lsp-mode :init + :config :hook (;; replace XXX-mode with concrete major-mode(e. g. python-mode) (c-mode . lsp)) :commands lsp) + ;; company (unless (package-installed-p 'company) (package-install 'company)) @@ -58,6 +60,18 @@ (setq neo-theme (if (display-graphic-p) 'icons)) +;; emacs gdb +(fmakunbound 'gdb) +(fmakunbound 'gdb-enable-debug) + +(unless (package-installed-p 'gdb-mi) + (package-install 'gdb-mi)) + +(use-package gdb-mi + :init + (fmakunbound 'gdb) + (fmakunbound 'gdb-enable-debug)) + ;; neotree (unless (package-installed-p 'neotree) (package-install 'neotree)