summaryrefslogtreecommitdiff
path: root/modules/custom-line-paragraph.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/custom-line-paragraph.el')
-rw-r--r--modules/custom-line-paragraph.el22
1 files changed, 14 insertions, 8 deletions
diff --git a/modules/custom-line-paragraph.el b/modules/custom-line-paragraph.el
index 17b6cdf4..32f9aaa1 100644
--- a/modules/custom-line-paragraph.el
+++ b/modules/custom-line-paragraph.el
@@ -1,14 +1,13 @@
;;; custom-line-paragraph.el --- -*- coding: utf-8; lexical-binding: t; -*-
-
+;; Author: Craig Jennings <c@cjennings.net>
+;;
;;; Commentary:
;;
-;; This module provides line and paragraph manipulation utilities.
-;; These utilities enhance text editing and formatting capabilities.
+;; This module provides the following line and paragraph manipulation utilities:
;;
-;; Functions include:
;; - joining lines in a region or the current line with the previous one
-;; - joining entire paragraphs into single lines
-;; - duplicating lines or regions (with optional commenting)
+;; - joining separate lines into a single paragraph
+;; - duplicating lines or regions (optional commenting)
;; - removing duplicate lines
;; - removing lines containing specific text
;; - underlining text with a custom character
@@ -140,8 +139,15 @@ If the line is empty or contains only whitespace, abort with a message."
(keymap-set cj/custom-keymap "l" cj/line-and-paragraph-map)
(with-eval-after-load 'which-key
- (which-key-add-key-based-replacements "C-; l" "line and paragraph menu")
- (which-key-add-key-based-replacements "C-; l c" "duplicate and comment"))
+ (which-key-add-key-based-replacements
+ "C-; l" "line and paragraph menu"
+ "C-; l j" "join lines"
+ "C-; l J" "join paragraph"
+ "C-; l d" "duplicate"
+ "C-; l c" "duplicate and comment"
+ "C-; l R" "remove duplicates"
+ "C-; l r" "remove matching"
+ "C-; l u" "underscore line"))
(provide 'custom-line-paragraph)
;;; custom-line-paragraph.el ends here.