Add a defun to switch to the scratch buffer, it being the only visible one. Bind
it to F5.
(global-set-key (kbd "C-c eh") (lambda () (interactive) (find-file (expand-file-name "hooks-puts.el" user-emacs-directory))))
(global-set-key (kbd "C-c eb") (lambda () (interactive) (find-file (expand-file-name "bindings.el" user-emacs-directory))))
(global-set-key (kbd "C-c s") 'eshell)
+(global-set-key (kbd "<f5>") 'scratch-only)
(global-set-key (kbd "<f8>") 'recentf-open-files)
;; OVERRIDES
(global-set-key [remap move-beginning-of-line] 'smart-beginning-of-line)
"Bring up tokyo60 keymap for editing."
(interactive)
(find-file "~/qmk_firmware/keyboards/tokyokeyboard/tokyo60/keymaps/ehrman/keymap.c"))
+
+(defun scratch-only ()
+ "Bring up the scratch buffer as the only visible buffer."
+ (interactive)
+ (switch-to-buffer "*scratch*")
+ (delete-other-windows))