summaryrefslogtreecommitdiff
path: root/basic.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-08-17 11:04:27 +0800
committerJSDurand <mmemmew@gmail.com>2021-08-17 11:04:27 +0800
commit280abe85bb2ecdbac5f427bd44871c2ad716a985 (patch)
tree4118743455b18614c3b001ed9d2ed13f8665ae84 /basic.el
parent594dc7eda49288282ee8c02fc0594fc3aeb97fad (diff)
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.
Diffstat (limited to 'basic.el')
-rw-r--r--basic.el4
1 files changed, 4 insertions, 0 deletions
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