From 90b0da4820632a040975ce825c69322e7d7d0d7f Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Tue, 5 Nov 2024 11:52:13 +1100 Subject: [emacs][gdb] minor changes * emacs/.emacs.d/init/ycp-org.el: disable read-only in org edit special buffer * emacs/.emacs.d/lisp/my/my-org.el: ^ * misc/.gdbinit: a break-and-continue convenience function --- emacs/.emacs.d/lisp/my/my-org.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'emacs/.emacs.d/lisp') diff --git a/emacs/.emacs.d/lisp/my/my-org.el b/emacs/.emacs.d/lisp/my/my-org.el index 4fea460..698b0d3 100644 --- a/emacs/.emacs.d/lisp/my/my-org.el +++ b/emacs/.emacs.d/lisp/my/my-org.el @@ -1364,6 +1364,12 @@ With a prefix arg, yank and exit immediately." (yank)) (org-edit-src-exit)))) +;; used to add an :after advice to `org-edit-special'. +(defun my-org-edit-special-after (_) + ;; some modes (e.g. diff mode) are read-only by default, which + ;; does not make sense when the intention is to edit + (read-only-mode 0)) + (defun my-link-to-line-number-in-prog-mode () "When in prog-mode, use line number as search item." (when (derived-mode-p 'prog-mode) -- cgit v1.2.3