42 lines
1.6 KiB
EmacsLisp
42 lines
1.6 KiB
EmacsLisp
;;; base-keys.el --- Archivo de configuración de atajos -*- lexical-binding: t -*-
|
|
|
|
;; Author: kj <webmaster@outcontrol.net>
|
|
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
|
|
|
;;; Commentary:
|
|
|
|
;; Aquí se configuran los atajos globales.
|
|
;; Es posible que haya otros, ya que muchos se configuran
|
|
;; directamente en los paquetes/extensiones y dependen de los mismos.
|
|
|
|
;;; Code:
|
|
|
|
(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-a") 'mark-whole-buffer) ; Seleccionar todo con CTRL+SHIFT+a.
|
|
|
|
(global-set-key (kbd "C-x c c")
|
|
'comment-or-uncomment-region) ; Comentar/descomentar en lote
|
|
|
|
(global-set-key (kbd "C-<f11>") 'toggle-frame-maximized) ; Maximizar / restaurar
|
|
|
|
;; Cambios rápidos de major modes
|
|
(global-set-key (kbd "C-x m") nil) ; Unbind mail on C-x m
|
|
(global-set-key (kbd "C-x mh") 'html-mode)
|
|
(global-set-key (kbd "C-x mj") 'js-mode)
|
|
(global-set-key (kbd "C-x mp") 'php-mode)
|
|
(global-set-key (kbd "C-x mr") 'rust-mode)
|
|
|
|
;; Atajos de windmove
|
|
(global-set-key (kbd "C-x <left>") 'windmove-left)
|
|
(global-set-key (kbd "C-x <right>") 'windmove-right)
|
|
(global-set-key (kbd "C-x <up>") 'windmove-up)
|
|
(global-set-key (kbd "C-x <down>") 'windmove-down)
|
|
|
|
;; Meta atajos (atajos de atajos)
|
|
(global-set-key (kbd "C-c l d") "\C-a\C- \C-n\M-w\C-y") ; Duplicar línea
|
|
|
|
(provide 'base-keys)
|
|
;;; base-keys.el ends here
|