2022-06-01 15:18:06 +02:00
|
|
|
;;; base-keys.el --- Archivo de configuración de atajos -*- lexical-binding: t -*-
|
2022-03-30 01:21:13 +02:00
|
|
|
|
|
|
|
;; 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)
|
2022-04-13 06:44:58 +02:00
|
|
|
(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.
|
2022-06-28 05:52:52 +02:00
|
|
|
(global-set-key (kbd "C-S-c")
|
|
|
|
'comment-or-uncomment-region-or-line) ; Comentar/descomentar línea o selección
|
2022-03-30 01:21:13 +02:00
|
|
|
(global-set-key (kbd "C-<f11>") 'toggle-frame-maximized) ; Maximizar / restaurar
|
2022-06-28 05:52:52 +02:00
|
|
|
(global-set-key (kbd "C-S-d") 'duplicate-current-line) ; Duplicar línea
|
2022-03-30 01:21:13 +02:00
|
|
|
|
2022-04-13 06:44:58 +02:00
|
|
|
;; 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)
|
2022-05-27 18:22:02 +02:00
|
|
|
(global-set-key (kbd "C-x mr") 'rust-mode)
|
2022-04-13 06:44:58 +02:00
|
|
|
|
|
|
|
;; Atajos de windmove
|
2022-05-18 09:07:54 +02:00
|
|
|
(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)
|
2022-04-13 06:44:58 +02:00
|
|
|
|
2022-05-09 01:00:49 +02:00
|
|
|
;; Meta atajos (atajos de atajos)
|
2022-06-28 05:52:52 +02:00
|
|
|
;;(global-set-key (kbd "C-c l d") "\C-a\C- \C-n\M-w\C-y") ; Duplicar línea
|
2022-05-09 01:00:49 +02:00
|
|
|
|
2022-03-30 01:21:13 +02:00
|
|
|
(provide 'base-keys)
|
|
|
|
;;; base-keys.el ends here
|