From c5c151d5037968ff84c9469e530fc7c0a23dbc26 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Thu, 1 Jun 2023 23:01:10 -0400 Subject: Fix keybinds subsections organization --- init.el | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/init.el b/init.el index b3c229d..6f46055 100644 --- a/init.el +++ b/init.el @@ -1061,12 +1061,13 @@ ;; --------------------------------------------------------------------- ;; --------------------------------- -;; Keybind hints -;; ------------- -;; Show hints for available keybinds -;; as you type them. +;; Keybind assistance +;; ------------------ +;; There's no need to remember every +;; keybinds by heart. Just tell me. ;; --------------------------------- +;; Show keybind hints as they are typed (use-package which-key :straight t :delight @@ -1075,21 +1076,6 @@ (setq which-key-idle-delay 1.5 which-key-side-window-max-height 5)) - -;; --------------------------------- -;; Fix ESC behavior -;; ---------------- -;; The default behavior of the ESC -;; key is atrocious. Why in God's -;; name would I want it to close all -;; my windows when I press it twice? -;; -;; This fixes the behavior to do -;; what ESC should do: "escape" the -;; current thing I'm doing, like the -;; minibuffer or a popup window. -;; --------------------------------- - ;; Define function and keybind to list all bindings of a certain key (defun mm/print-all-bindings-for-key (key) "Output all bindings for KEY in *MESSAGES*." @@ -1109,6 +1095,20 @@ (global-set-key (kbd "C-h C-u k") 'mm/print-all-bindings-for-key) +;; --------------------------------- +;; Fix ESC behavior +;; ---------------- +;; The default behavior of the ESC +;; key is atrocious. Why in God's +;; name would I want it to close all +;; my windows when I press it twice? +;; +;; This fixes the behavior to do +;; what ESC should do: "escape" the +;; current thing I'm doing, like the +;; minibuffer or a popup window. +;; --------------------------------- + ;; Define fixed version of `keyboard-escape-quit' which does not close ;; windows or change their layout. (defun mm/keyboard-escape-quit-keep-windows () -- cgit v1.2.3