diff options
author | 2021-02-27 15:37:09 -0800 | |
---|---|---|
committer | 2021-02-27 15:37:09 -0800 | |
commit | feec611d17b3a2392c4d74ebca3f754d5e406429 (patch) | |
tree | 345e35205bb5acff736d1382b332283362b3e13f /oni-core.el | |
parent | c9ad4acc44f92db605806848e7107fabd9e933bf (diff) | |
download | emacs-config-feec611d17b3a2392c4d74ebca3f754d5e406429.tar.gz emacs-config-feec611d17b3a2392c4d74ebca3f754d5e406429.zip |
Add sort paragraph Hydra option
Diffstat (limited to 'oni-core.el')
-rw-r--r-- | oni-core.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/oni-core.el b/oni-core.el index 1660dfa..156900f 100644 --- a/oni-core.el +++ b/oni-core.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse <tom@ryuslash.org> ;; Keywords: local -;; Version: 2021.0131.215934 +;; Version: 2021.0227.150537 ;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key) ;; This program is free software; you can redistribute it and/or modify @@ -91,8 +91,14 @@ ^Sort^ ^^-------------- _l_: Lines +_p_: Paragraph _s_: String list" ("l" sort-lines) + ("p" (save-excursion + (sort-lines + nil + (progn (start-of-paragraph-text) (point)) + (progn (end-of-paragraph-text) (point))))) ("s" (sort-regexp-fields nil (rx "\"" (one-or-more (not "\"")) "\"") |