Open josephmturner opened 1 year ago
Now that I've improved the magit-section-mode function, I'd like to find a way to implement this functionality in a "mode-agnostic" way, so users could simply select to use this option or not, and it would work regardless of the major mode and related function. What do you think?
I just tested my/topsy-lisp-header-line
with markdown-mode
and js-ts-mode
, and it didn't give desired results. However, I also tested topsy--beginning-of-defun
, and it doesn't work well with js-ts-mode
either (and least with js objects).
The behavior of backward-up-list
does seem to be inconsistent among major modes. What other approach would be more mode-agnostic?
Uses the header line as an extra line of buffer text when the window-start isn't inside a list.
The
cl-pushnew
block assumes that #10 has been merged first. If we don't merge #10, we can change it to: