text editor - Deleting a char from the end of line in emacs -
i utilize these answer insert char % @ end of each line in marked part when using emacs. however, in order avoid endings %% have first delete occurrences of % @ end of lines in region. example
foo% foo2 foo3% foo4%% bar bar% should become
foo foo2 foo3 foo4 bar bar note not lines in part end % (otherwise done), , might end more 1 %. is, 1 cannot delete lastly char of each line. guess rather simple, i'm much of emacs newbie.
c-m-%%+c-qc-jenterc-qc-j! invokes query-replace-regexp replaceing number of %'s followed newline newline.
emacs text-editor
No comments:
Post a Comment