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)