Add my-transpose-lines interactive function

This commit is contained in:
2024-01-11 22:17:40 +03:00
parent 002f729029
commit 068934d936

View File

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