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/lisp/my/my-editing.el | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'emacs/.emacs.d/lisp') diff --git a/emacs/.emacs.d/lisp/my/my-editing.el b/emacs/.emacs.d/lisp/my/my-editing.el index b24103f..19043ff 100644 --- a/emacs/.emacs.d/lisp/my/my-editing.el +++ b/emacs/.emacs.d/lisp/my/my-editing.el @@ -508,5 +508,16 @@ With an prefix-arg, copy the file name relative to project root." (forward-comment 1) (point)))))) +(defun my-elide-region (b e) + (interactive "r") + (let ((message-elide-ellipsis (concat comment-start + " [... %l lines elided] +"))) + (message-elide-region b e))) + +(defun my-replace-no-filter (old-fun &rest r) + (let ((search-invisible t)) + (apply old-fun r))) + (provide 'my-editing) ;;; my-editing.el ends here -- cgit v1.2.3