This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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) |