mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Switch from move-text to move-dup package
This allows me to remove the custom method for duplicating line, as move-dup comes with a nice implementation.
This commit is contained in:
@@ -15,9 +15,6 @@
|
||||
;; Evaluate buffer
|
||||
(global-set-key (kbd "C-c C-e") 'eval-buffer)
|
||||
|
||||
;; Duplicate line
|
||||
(global-set-key (kbd "C-x C-d") 'siren-duplicate-current-line-or-region)
|
||||
|
||||
;; Window switching
|
||||
(global-set-key (kbd "C-x i") 'siren-other-window-reverse)
|
||||
(global-set-key (kbd "C-x C-o") 'other-window)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
;;; Code:
|
||||
|
||||
(siren-require-packages '(move-text expand-region))
|
||||
(siren-require-packages '(move-dup expand-region))
|
||||
|
||||
(require 'move-text)
|
||||
(require 'expand-region)
|
||||
@@ -46,8 +46,10 @@ A place is considered `tab-width' character columns."
|
||||
(siren-shift-right (* -1 (or arg 1))))
|
||||
|
||||
;; Keybindings
|
||||
(define-key global-map (kbd "M-p") 'move-text-up)
|
||||
(define-key global-map (kbd "M-n") 'move-text-down)
|
||||
(global-set-key (kbd "M-p") 'md/move-lines-up)
|
||||
(global-set-key (kbd "M-n") 'md/move-lines-down)
|
||||
(global-set-key (kbd "C-x C-d") 'md/duplicate-up)
|
||||
;; (global-set-key (kbd "C-x C-d") 'md/duplicate-down)
|
||||
|
||||
(global-set-key (kbd "C-c [") 'siren-shift-left)
|
||||
(global-set-key (kbd "C-c ]") 'siren-shift-right)
|
||||
|
||||
Reference in New Issue
Block a user