From 280abe85bb2ecdbac5f427bd44871c2ad716a985 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Tue, 17 Aug 2021 11:04:27 +0800 Subject: new function: durand-copy-line-dwim * basic.el (global-map): Bind to "s-;". * common.el (durand-copy-line-dwim): This meets my needs to copy or duplicate lines. --- basic.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'basic.el') diff --git a/basic.el b/basic.el index e23688d..cd5fdff 100644 --- a/basic.el +++ b/basic.el @@ -209,6 +209,10 @@ This will maintain the frame's width and height as well." (display-buffer-in-tab durand-display-in-one-window) (tab-name . "man page")))) +;;; copy-duplicate dwim + +(define-key global-map (vector ?\s-\;) #'durand-copy-line-dwim) + ;;; Custom kill buffer function ;;;###autoload -- cgit v1.2.3-18-g5258