mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Add sort-symbols and ss alias
This commit is contained in:
@@ -72,7 +72,15 @@ See `sort-regexp-fields'."
|
||||
(global-set-key (kbd "C-c /") 'comment-or-uncomment-region-or-line)
|
||||
(global-set-key (kbd "C-c C-/") 'comment-or-uncomment-region-or-line)
|
||||
|
||||
;; from: https://www.emacswiki.org/emacs/SortWords
|
||||
(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))
|
||||
|
||||
(defalias 'sw 'sort-words)
|
||||
(defalias 'ss 'sort-symbols)
|
||||
|
||||
(provide 'siren-text-manipulation)
|
||||
;;; siren-text-manipulation.el ends here
|
||||
|
||||
Reference in New Issue
Block a user