Add my-transpose-lines interactive function
This commit is contained in:
@@ -121,13 +121,19 @@
|
|||||||
a))
|
a))
|
||||||
`(progn ,@a)))
|
`(progn ,@a)))
|
||||||
|
|
||||||
|
(defun my-transpose-lines ()
|
||||||
|
(interactive)
|
||||||
|
(transpose-lines 0)
|
||||||
|
(exchange-point-and-mark))
|
||||||
|
|
||||||
(global-set-keys
|
(global-set-keys
|
||||||
([insert] . 'delete-selection-mode) ;; Overwrite mode
|
([insert] . 'delete-selection-mode) ;; Overwrite mode
|
||||||
((kbd "M-o") . 'other-window) ;; Instead of C-x o
|
((kbd "M-o") . 'other-window) ;; Instead of C-x o
|
||||||
((kbd "C-[ C-[ C-[") . nil)
|
((kbd "C-[ C-[ C-[") . nil)
|
||||||
((kbd "C-x /") . #'replace-string)
|
((kbd "C-x /") . 'replace-string)
|
||||||
((kbd "C-x w") . #'switch-to-buffer-other-window)
|
((kbd "C-x w") . 'switch-to-buffer-other-window)
|
||||||
((kbd "C-c l") . "λ"))
|
((kbd "C-c l") . "λ")
|
||||||
|
((kbd "C-x C-t") . 'my-transpose-lines))
|
||||||
|
|
||||||
(tool-bar-mode -1)
|
(tool-bar-mode -1)
|
||||||
(menu-bar-mode -1)
|
(menu-bar-mode -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user