Post B6ZvVmFIDl9VjXzppI by b@mrrp.place
(DIR) More posts by b@mrrp.place
(DIR) Post #B6ZvVmFIDl9VjXzppI by b@mrrp.place
0 likes, 0 repeats
copy-pasting elisp code from stack overflow answers with zero votes into my config.el , and wondering why emacs doesn't have an "unindent" function by default and why very few people seem to seek out a fix for this ,,,
(DIR) Post #B6ZvVmRLUwnGKvdSc4 by icedquinn@blob.cat
0 likes, 0 repeats
@b there is neither indent nor unindent, it simply indents to where it should be acccording to the major mode.
(DIR) Post #B6ZwBi6K1Mqp2dnNoW by b@mrrp.place
0 likes, 0 repeats
@icedquinn huh ,, maybe this is an issue with the major modes i'm using then, but it seems like very frequently the normal indent function indents the line further than it should be and i need to press backspace a bunch to get it to go where it shouldthe thing i ended up using is rofrol/untab-region from https://stackoverflow.com/a/51121091, which i assigned to <backtab>. it works great and does exactly what other editors do when you press shift-tab
(DIR) Post #B6ZwBiMd2jtXrDQPEO by icedquinn@blob.cat
0 likes, 0 repeats
@b probably. the indent key calls in to the major mode which decides where to indent. you're meant to tell the mode what you want, not do it yourself.like all things trying to be clever--great when it works, insufferable when it doesn't