diff --git a/configs/init-functions.el b/configs/init-functions.el index 2961cee..94b9768 100644 --- a/configs/init-functions.el +++ b/configs/init-functions.el @@ -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." diff --git a/configs/init-keys.el b/configs/init-keys.el index 7cd1dbf..18ad0da 100644 --- a/configs/init-keys.el +++ b/configs/init-keys.el @@ -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-") 'toggle-frame-maximized) ; Maximizar / restaurar (global-set-key (kbd "C-S-d") 'duplicate-current-line) ; Duplicar línea (global-set-key (kbd "") 'context-menu-open) ; Abrir menú contextal al hacer clic derecho