chore: Remove custom comment/uncomment function
This commit is contained in:
@@ -15,18 +15,6 @@
|
|||||||
(interactive "nTransparency Value 0 - 100 opaque:")
|
(interactive "nTransparency Value 0 - 100 opaque:")
|
||||||
(set-frame-parameter nil 'alpha-background value))
|
(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
|
;; Duplicar la línea actual
|
||||||
(defun duplicate-current-line (&optional n)
|
(defun duplicate-current-line (&optional n)
|
||||||
"Duplicate current line, make more than 1 copy given a numeric (N) argument."
|
"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-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-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-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-<f11>") 'toggle-frame-maximized) ; Maximizar / restaurar
|
||||||
(global-set-key (kbd "C-S-d") 'duplicate-current-line) ; Duplicar línea
|
(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
|
(global-set-key (kbd "<mouse-3>") 'context-menu-open) ; Abrir menú contextal al hacer clic derecho
|
||||||
|
|||||||
Reference in New Issue
Block a user