My Emacs Hotkey Command Key Bindings

** TL;DR

My hotkey key bindings

#+FILENAME: hotkeys.el #+begin_src elisp :results none :tangle ~/workshop/dotfiles.alanwsmith.com/dotfiles/emacs/tangled-files/hotkeys.el

;; These are numbers, best place to make temp changes (global-set-key (kbd "C-M-!") 'copy-buffer-name-to-osx-clipboard)

;; C-M-S-h is for when Emacs is already active ;; C-M-S-i catches the signal that's passed from ;; Alfred when C-M-S-h is triggered outside of Emacs (global-set-key (kbd "C-M-S-h") 'grimoire-mode-search)

(global-set-key (kbd "C-M-S-t") 'org-babel-tangle)

;; Execute a source block (closing error windows if necessary) (global-set-key (kbd "C-M-S-f") 'close-error-window-and-run)

;; Execute all source blocks in a buffer ;;(global-set-key (kbd "C-M-S-a") 'spacemacs/add-word-to-dict-global) (global-set-key (kbd "C-M-S-b") 'org-babel-execute-buffer)

(global-set-key (kbd "C-M-S-n") 'rename-this-file)

(global-set-key (kbd "C-M-S-a") 'open-buffer-in-new-frame) (global-set-key (kbd "C-M-S-z") 'helm-for-files)

;; This is the more advanced run. Need to document it. ;; (global-set-key (kbd "C-M-S-r") 'aws-run ) ;; (global-set-key (kbd "

;; (global-set-key (kbd "

;;;;;;;; ;; Keys that aren't mapped directly on the moonlander

(global-set-key (kbd "C-M-S-l") 'not-mapped-on-moonlander) (global-set-key (kbd "C-M-S-m") 'not-mapped-on-moonlander) (global-set-key (kbd "C-M-S-u") 'not-mapped-on-moonlander) (global-set-key (kbd "C-M-S-v") 'not-mapped-on-moonlander) (global-set-key (kbd "C-M-S-w") 'not-mapped-on-moonlander) ;; q is actually mapped, but it's not working for some reason.. (global-set-key (kbd "C-M-S-q") 'not-mapped-on-moonlander)


Put a keyboard string in here to see what it's mapped to:

TODO: figure out all the different ways keys can be mapped to make sure you're showing them all

I have a moonlander with a layer setup to trigger macro keys with `F9` before the key specifically for use with Emacs. These are the custom hotkey/keybinds I setup. They include native functions (like `save-buffer`) and my own custom ones (like `grimoire-mode-search`)

I place that file in a directory that gets loaded on when I start Emacs. I do that by adding this into the `(defun dotspacemacs/user-config ()...)` section of my `~/.spacemacs` config.

** Marker For Un-mapped Moonlander Keys

This is a placeholder function that make it easy to see what keys aren't currently mapped on the moonlander when I [[/posts/2gv2itjwopwm][run the report]].

** Commands

These are native commands:

C-h v - look up a variable

#+KEYWORDS: grimoire grim-