From e59e69b80bf51566cae162f5043f1817fe9161b2 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sat, 23 Apr 2022 17:36:44 -0400 Subject: [PATCH] overhaul / update keybinds --- common/_global.el | 18 +++++++++++++----- emacs.md | 15 ++++++++------- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/common/_global.el b/common/_global.el index 279fb43..8fbcf51 100644 --- a/common/_global.el +++ b/common/_global.el @@ -179,16 +179,16 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Setup global keys +(require 'transpose-frame) (cua-mode 1) (windmove-default-keybindings 'meta) -(global-set-key (kbd "C-g") 'goto-line) (global-set-key (kbd "") 'keyboard-escape-quit) -(global-set-key (kbd "C-c m") 'menu-bar-open) -(global-set-key (kbd "C-c .") 'rotate-frame-clockwise) -(global-set-key (kbd "C-c ,") 'rotate-frame-anticlockwise) -(global-set-key (kbd "C-c u") 'toggle-truncate-lines) +(global-set-key (kbd "M-m") 'menu-bar-open) (global-set-key (kbd "") 'delete-frame) (global-set-key (kbd "C-x C-z") nil) + +(global-set-key (kbd "C-g") 'goto-line) +(global-set-key (kbd "C-c u") 'toggle-truncate-lines) (global-set-key (kbd "C-o") 'find-file) (global-set-key (kbd "C-k") 'dired) (global-set-key (kbd "C-c w") @@ -199,8 +199,16 @@ ) ) +(global-set-key (kbd "M-k") 'delete-window) +(global-set-key (kbd "M-\"") 'split-window-below) +(global-set-key (kbd "M-#") 'split-window-right) +(global-set-key (kbd "M-.") 'rotate-frame-clockwise) +(global-set-key (kbd "M-,") 'rotate-frame-anticlockwise) + + ;; Lookup the current symbol at point. C-c C-d is a common keybinding ;; for this in lisp modes. +(global-set-key (kbd "M-h") 'describe-bindings) (global-set-key (kbd "C-c C-d") #'helpful-at-point) ; more vscode/gui styled find/replace diff --git a/emacs.md b/emacs.md index fab3255..a379193 100644 --- a/emacs.md +++ b/emacs.md @@ -73,14 +73,15 @@ open scratch buffer. paste below into it as the contents then do `M-x ev-b RET` modus-themes persp-mode diminish - dash - s - f - oragami + dash + transpose-frame + s + f + oragami ido-completing-read+ - dired-single - all-the-icons-dired - dired-rainbow + dired-single + all-the-icons-dired + dired-rainbow helpful) "Default packages")