branch: elpa/standard-keys-mode
commit 0ff0302ce7c0765198f328dfac6d0d6d666ce8e7
Author: Elías Gabriel Pérez <[email protected]>
Commit: Elías Gabriel Pérez <[email protected]>

    Bind 'delete-window' to M-0 in 'standard-keys-default-keymap'
---
 CHANGELOG.org          | 12 +++---------
 KEYMAP_THEMES_LIST.org |  1 +
 README.org             |  1 +
 standard-keys-mode.el  |  3 ++-
 4 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/CHANGELOG.org b/CHANGELOG.org
index 857bec73f2c..96346993d33 100644
--- a/CHANGELOG.org
+++ b/CHANGELOG.org
@@ -3,15 +3,9 @@ or changes.
 
 * Unreleased 1.0.1
 
-Added new commands:
-
-+ standard-keys-copy-region-or-line
-+ standard-keys-cut-region-or-line
-
-~standard-keys-default-keymap~ and ~standard-keys-ergoemacs-like-keymap~
-now uses ~standard-keys-copy-region-or-line~ and
-~standard-keys-cut-region-or-line~ instead of ~kill-ring-save~ and
-~kill-region~.
++ Added new commands: ~standard-keys-copy-region-or-line~ and 
~standard-keys-cut-region-or-line~.
++ ~standard-keys-default-keymap~ and ~standard-keys-ergoemacs-like-keymap~ now 
uses ~standard-keys-copy-region-or-line~ and ~standard-keys-cut-region-or-line~ 
instead of ~kill-ring-save~ and ~kill-region~.
++ ~delete-window~ is now bound to =M-0= in ~standard-keys-default-keymap~.
 
 * 1.0.0 Release (25 ago. 2025)
 Initial Release
diff --git a/KEYMAP_THEMES_LIST.org b/KEYMAP_THEMES_LIST.org
index cffb70df27d..758498f47e3 100644
--- a/KEYMAP_THEMES_LIST.org
+++ b/KEYMAP_THEMES_LIST.org
@@ -35,6 +35,7 @@ This keymap is based in ~wakib-keys~ default keymap
 | ~Control~ ~=~            | ~text-scale-adjust~ (Set Zoom)                    
                               |
 | ~Control~ ~n~            | ~standard-keys-create-new-buffer~ (Create a new 
empty buffer)                    |
 | ~Control~ ~;~            | ~comment-line~ (Comment out current line)         
                               |
+| ~Alt/Meta~ ~0~           | ~delete-window~                                   
                               |
 | ~Alt/Meta~ ~1~           | ~delete-other-windows~                            
                               |
 | ~Alt/Meta~ ~2~           | ~split-window-below~                              
                               |
 | ~Alt/Meta~ ~3~           | ~split-window-right~                              
                               |
diff --git a/README.org b/README.org
index 9c0eab0385b..13943c91bee 100644
--- a/README.org
+++ b/README.org
@@ -94,6 +94,7 @@ standard-keys uses the following shortcuts by default 
(defined in
 | ~Control~ ~=~            | ~text-scale-adjust~ (Set Zoom)                    
                               |
 | ~Control~ ~n~            | ~standard-keys-create-new-buffer~ (Create a new 
empty buffer)                    |
 | ~Control~ ~;~            | ~comment-line~ (Comment out current line)         
                               |
+| ~Alt/Meta~ ~0~           | ~delete-window~                                   
                               |
 | ~Alt/Meta~ ~1~           | ~delete-other-windows~                            
                               |
 | ~Alt/Meta~ ~2~           | ~split-window-below~                              
                               |
 | ~Alt/Meta~ ~3~           | ~split-window-right~                              
                               |
diff --git a/standard-keys-mode.el b/standard-keys-mode.el
index 2a92a15b2a7..db1236934de 100644
--- a/standard-keys-mode.el
+++ b/standard-keys-mode.el
@@ -103,7 +103,7 @@ or a custom one:
 
 ;;;; Internal Functions
 
-(defun sk-key-keybinding (key)
+(defun standard-keys-key-keybinding (key)
   "Execute Dynamic KEY prefix action.
 KEY must be a key prefix string, either \"C-x\" or \"C-c\"."
   ;; menu-item is used here for compute the KEY keymap.
@@ -279,6 +279,7 @@ The buffer major mode is specified in 
`standard-keys-new-buffer-mode'."
   "C-="   #'text-scale-adjust
   "C-n"   #'standard-keys-create-new-buffer
   "C-;"   #'comment-line
+  "M-0"   #'delete-window
   "M-1"   #'delete-other-windows
   "M-2"   #'split-window-below
   "M-3"   #'split-window-right

Reply via email to