From ad1cdc1f55bf90f635365b728b91888edf31fa6e Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Wed, 11 Oct 2023 22:38:03 +1100 Subject: [emacs] [gdb] Some minor changes - emacs: my-elide-region that does the same thing as message-elide-region, with the comment-start as the prefix - gdbinit: an alias to a command that displays all backtrace of all threads --- emacs/.emacs.d/init/ycp-grep.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'emacs/.emacs.d/init/ycp-grep.el') diff --git a/emacs/.emacs.d/init/ycp-grep.el b/emacs/.emacs.d/init/ycp-grep.el index 6496c78..85f15cd 100644 --- a/emacs/.emacs.d/init/ycp-grep.el +++ b/emacs/.emacs.d/init/ycp-grep.el @@ -88,6 +88,9 @@ (:delay 5) (add-hook 'occur-mode-hook #'hl-line-mode) (my-keybind occur-mode-map "t" #'toggle-truncate-lines) + (advice-add 'replace-regexp :around 'my-replace-no-filter) + (define-key global-map (kbd "C-c r r") 'replace-regexp) + (define-key global-map (kbd "C-c r s") 'replace-string) ) ;;; wgrep (writable grep) -- cgit v1.2.3