how to delete the repeat lines in emacs
问题 I have a text with a lots of lines, my question is how to delete the repeat lines in emacs? using the command in emacs or elisp packages without external utils. for example: this is line a this is line b this is line a to remove the 3rd line (same as 1st line) this is line a this is line b 回答1: Put this code to your .emacs: (defun uniq-lines (beg end) "Unique lines in region. Called from a program, there are two arguments: BEG and END (region to sort)." (interactive "r") (save-excursion (save