diff --git a/emacs/.emacs.d/prot-emacs-modules/prot-emacs-essentials.el b/emacs/.emacs.d/prot-emacs-modules/prot-emacs-essentials.el index 6e6d7733..55b6dfe4 100644 --- a/emacs/.emacs.d/prot-emacs-modules/prot-emacs-essentials.el +++ b/emacs/.emacs.d/prot-emacs-modules/prot-emacs-essentials.el @@ -165,11 +165,10 @@ "C-x r ." #'prot-simple-file-to-register)) ;;;; Scratch buffers per major mode (prot-scratch.el) -(use-package prot-scratch - :ensure nil - :bind ("C-c s" . prot-scratch-buffer) - :config - (setq prot-scratch-default-mode 'text-mode)) +(prot-emacs-configure + (setq prot-scratch-default-mode 'text-mode) + (autoload #'prot-scratch-buffer "prot-scratch") + (define-key global-map (kbd "C-c s") #'prot-scratch-buffer)) ;;;; Insert character pairs (prot-pair.el) (use-package prot-pair diff --git a/emacs/.emacs.d/prot-emacs.org b/emacs/.emacs.d/prot-emacs.org index 2f010a71..10928eb5 100644 --- a/emacs/.emacs.d/prot-emacs.org +++ b/emacs/.emacs.d/prot-emacs.org @@ -2761,11 +2761,10 @@ buffer. Read the doc string of the command ~prot-scratch-buffer~. #+begin_src emacs-lisp :tangle "prot-emacs-modules/prot-emacs-essentials.el" ;;;; Scratch buffers per major mode (prot-scratch.el) -(use-package prot-scratch - :ensure nil - :bind ("C-c s" . prot-scratch-buffer) - :config - (setq prot-scratch-default-mode 'text-mode)) +(prot-emacs-configure + (setq prot-scratch-default-mode 'text-mode) + (autoload #'prot-scratch-buffer "prot-scratch") + (define-key global-map (kbd "C-c s") #'prot-scratch-buffer)) #+end_src *** The =prot-emacs-essentials.el= section about =prot-pair.el= (insert character pairs)