Compare commits
3 Commits
d8157061f1
...
89b7ffbbba
| Author | SHA1 | Date | |
|---|---|---|---|
| 89b7ffbbba | |||
| ff1afcf073 | |||
| 9350f41fe2 |
@@ -60,11 +60,15 @@
|
||||
;; Mover líneas o regiones con M-<teclas de dirección>
|
||||
(use-package drag-stuff
|
||||
:diminish
|
||||
:autoload drag-stuff-define-keys
|
||||
;; :autoload drag-stuff-define-keys
|
||||
:hook (elpaca-after-init . drag-stuff-global-mode)
|
||||
:config
|
||||
(add-to-list 'drag-stuff-except-modes 'org-mode)
|
||||
(drag-stuff-define-keys))
|
||||
:bind (:map drag-stuff-mode-map
|
||||
("M-p" . drag-stuff-up)
|
||||
("M-n" . drag-stuff-down))
|
||||
;; :config
|
||||
;; (add-to-list 'drag-stuff-except-modes 'org-mode)
|
||||
;; (drag-stuff-define-keys)
|
||||
)
|
||||
|
||||
;; A comprehensive visual interface to diff & patch
|
||||
(use-package ediff
|
||||
|
||||
@@ -15,18 +15,6 @@
|
||||
(interactive "nTransparency Value 0 - 100 opaque:")
|
||||
(set-frame-parameter nil 'alpha-background value))
|
||||
|
||||
;; Comentar línea o región
|
||||
(defun comment-or-uncomment-region-or-line ()
|
||||
"Comments or uncomments the region or the current line."
|
||||
(interactive)
|
||||
(let (beg end)
|
||||
(if (region-active-p)
|
||||
(setq beg (region-beginning) end (region-end))
|
||||
(setq beg (line-beginning-position) end (line-end-position)))
|
||||
(comment-or-uncomment-region beg end)
|
||||
;;(next-line) ;; saltar a la siguiente línea
|
||||
))
|
||||
|
||||
;; Duplicar la línea actual
|
||||
(defun duplicate-current-line (&optional n)
|
||||
"Duplicate current line, make more than 1 copy given a numeric (N) argument."
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
(global-set-key (kbd "C-x C-z") nil) ; Unbind C-x C-z (don't minimize)
|
||||
(global-set-key (kbd "C-z") 'undo) ; Unbind C-z y hacerlo funcionar para deshacer cambios
|
||||
(global-set-key (kbd "C-S-z") 'undo-redo) ; Rehacer cambios con C-S-z
|
||||
(global-set-key (kbd "C-S-c")
|
||||
'comment-or-uncomment-region-or-line) ; Comentar/descomentar línea o selección
|
||||
(global-set-key (kbd "C-<f11>") 'toggle-frame-maximized) ; Maximizar / restaurar
|
||||
(global-set-key (kbd "C-S-d") 'duplicate-current-line) ; Duplicar línea
|
||||
(global-set-key (kbd "<mouse-3>") 'context-menu-open) ; Abrir menú contextal al hacer clic derecho
|
||||
|
||||
@@ -52,11 +52,12 @@
|
||||
;; Moverme entre frames
|
||||
(use-package windmove
|
||||
:ensure nil
|
||||
:bind (("s-K" . windmove-up)
|
||||
("s-J" . windmove-down)
|
||||
("s-H" . windmove-left)
|
||||
("s-L" . windmove-right)
|
||||
("s-O" . other-window)))
|
||||
:bind (("M-I" . windmove-up)
|
||||
("M-K" . windmove-down)
|
||||
("M-J" . windmove-left)
|
||||
("M-L" . windmove-right)
|
||||
("M-O" . other-window)
|
||||
("M-o" . other-window)))
|
||||
|
||||
;; Terminal
|
||||
(use-package vterm
|
||||
|
||||
Reference in New Issue
Block a user