Added realgud config

This commit is contained in:
Alexander Rosenberg 2024-01-08 16:26:25 -08:00
parent dd46b6edd6
commit 49a92ebf94
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

50
init.el
View File

@ -145,22 +145,6 @@
icon-preference '(symbol text image emoji)) icon-preference '(symbol text image emoji))
(tab-bar-mode 1)) (tab-bar-mode 1))
;; c-ts-mode
(use-package c-ts-mode
:after evil
:init
(setq-default c-ts-mode-indent-offset 4)
:config
(evil-define-key 'normal 'c-ts-mode-map
"go" #'ff-find-other-file
"gO" #'ff-find-other-file-other-window)
(evil-define-key 'normal 'c++-ts-mode-map
"go" #'ff-find-other-file
"gO" #'ff-find-other-file-other-window)
(evil-define-key 'normal 'objc-mode-map
"go" #'ff-find-other-file
"gO" #'ff-find-other-file-other-window))
;; flyspell ;; flyspell
(use-package flyspell (use-package flyspell
:config :config
@ -191,6 +175,7 @@
(use-package evil (use-package evil
:init :init
(setq evil-want-integration t (setq evil-want-integration t
evil-want-C-d-scroll nil
evil-want-keybinding nil evil-want-keybinding nil
evil-undo-system 'undo-redo evil-undo-system 'undo-redo
evil-search-module 'isearch evil-search-module 'isearch
@ -496,6 +481,17 @@ visual states."
"--header-insertion=never" "--pch-storage=memory" "--header-insertion=never" "--pch-storage=memory"
"--malloc-trim" "--function-arg-placeholders")))) "--malloc-trim" "--function-arg-placeholders"))))
(use-package realgud
:hook (realgud-short-key-mode . my/-realgud-setup-shortkey-mode)
:bind (:map realgud:shortkey-mode-map
("a" . realgud:cmd-frame))
:init
(setq realgud-srcbuf-lock t
realgud-short-key-on-tracing? t)
(defun my/-realgud-setup-shortkey-mode ()
(when realgud-short-key-mode
(keymap-local-set "C-d" realgud:shortkey-mode-map))))
;; yasnippet ;; yasnippet
(use-package yasnippet (use-package yasnippet
:bind ("C-c s" . yas-expand) :bind ("C-c s" . yas-expand)
@ -592,6 +588,28 @@ COMMAND and COMINT are like `compile'."
(use-package blueprint-ts-mode (use-package blueprint-ts-mode
:after eglot) :after eglot)
;; c-ts-mode
(use-package c-ts-mode
:after evil
:bind (:map c-ts-mode-map
("C-c d" . realgud:gdb)
:map c++-ts-mode-map
("C-c d" . realgud:gdb)
:map objc-mode-map
("C-c d" . realgud:gdb))
:init
(setq-default c-ts-mode-indent-offset 4)
:config
(evil-define-key 'normal 'c-ts-mode-map
"go" #'ff-find-other-file
"gO" #'ff-find-other-file-other-window)
(evil-define-key 'normal 'c++-ts-mode-map
"go" #'ff-find-other-file
"gO" #'ff-find-other-file-other-window)
(evil-define-key 'normal 'objc-mode-map
"go" #'ff-find-other-file
"gO" #'ff-find-other-file-other-window))
;; rust ;; rust
(use-package rust-mode) (use-package rust-mode)