xahlee / xah-fly-keys

the most efficient keybinding for emacs
http://xahlee.info/emacs/misc/xah-fly-keys.html
485 stars 82 forks source link

More bracket-related fixes + minor readme update #172

Closed maxwestrom closed 5 months ago

maxwestrom commented 5 months ago

With some luck, all bracket deletion behaviors should be good now. Cheers!

xahlee commented 5 months ago

oh, sorry didn't see that. i just commited new, and was currently rewriting the whole xah-smart-delete. could you wait for a day and check out the new code for me? because it's big rewrite.

xahlee commented 5 months ago

i think i fixed the errors your caught about xah smart delete. and also fixed the outdated available layouts in readme, and the xah-goto-matching-bracket moving to prefix char. thank you.

maxwestrom commented 5 months ago

Hi Xah! Good that this code is all neat and tidy now. I tried it in elisp and sh-mode, and have only one nitpick: When deleting only brackets on a closing bracket, the point jumps to the start of the bracketed text. I think it should stay at the end of the text like it did earlier:

(goto-char (- xp0 2))

Have a good one!