Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

I found this on the Emacs Wiki [1]. It seems to work:

    (defun sort-symbols (reverse beg end)
      "Sort symbols in region alphabetically, in REVERSE if negative.
    See `sort-words'."
      (interactive "*P\nr")
      (sort-regexp-fields reverse "\\(\\sw\\|\\s_\\)+" "\\&" beg end))
[1]: https://www.emacswiki.org/emacs/SortWords


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: