Skip to content

Instantly share code, notes, and snippets.

@defaultxr
defaultxr / nanoish-ref.el
Last active January 8, 2021 21:19
nanoish reference window for emacs
(defun make-nanoish-ref-buffer-and-window ()
"Create a buffer showing a reference of Emacs' standard shortcuts, and then display it at the bottom a la nano."
(interactive)
;; ensure the rules for displaying the window are set up.
(setq display-buffer-alist (assoc-delete-all "*nanoish-ref*" display-buffer-alist #'equal))
(push '("*nanoish-ref*"
(display-buffer-at-bottom)
(window-height . 2)
(preserve-size . (nil . t))
(dedicated . t)