mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
- Split large modules into smaller parts (e.g. siren-text-manipulation) - Organize modules into high level groups: - completion - core - editor - languages - linting - misc - navigation - projects - spelling - text-editing - version-control - windows - workspaces
20 lines
523 B
EmacsLisp
20 lines
523 B
EmacsLisp
;;; siren-sort-symbols.el --- jimeh's Emacs Siren: sort-symbols.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Helper command to sort symbols in region. Shamelessly ripped from:
|
|
;; https://www.emacswiki.org/emacs/SortWords
|
|
|
|
;;; Code:
|
|
|
|
(defun sort-symbols (reverse beg end)
|
|
"Sort symbols in region alphabetically, in REVERSE if negative.
|
|
See `sort-symbols'."
|
|
(interactive "*P\nr")
|
|
(sort-regexp-fields reverse "\\(\\sw\\|\\s_\\)+" "\\&" beg end))
|
|
|
|
(defalias 'ss 'sort-symbols)
|
|
|
|
(provide 'siren-sort-symbols)
|
|
;;; siren-sort-symbols.el ends here
|