examples: emacs: Disable cua-mode by default.

* modules/rosenthal/examples/emacs/init-editing.el (emacs): Disable ‘cua-mode’.
* modules/rosenthal/examples/emacs/init.el: Add it to initial-scratch-message.
This commit is contained in:
Hilton Chain 2026-02-16 13:53:45 +08:00
parent 83edc24958
commit 9d90607a02
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292
2 changed files with 4 additions and 3 deletions

View File

@ -11,8 +11,6 @@
(setopt electric-indent-inhibit t) (setopt electric-indent-inhibit t)
:hook :hook
(before-save . delete-trailing-whitespace) (before-save . delete-trailing-whitespace)
;; Use Ctrl-C/X/Z for copy, cut, paste.
(after-init . cua-mode)
;; Automatic parenthesis pairing. ;; Automatic parenthesis pairing.
(after-init . electric-pair-mode)) (after-init . electric-pair-mode))

View File

@ -32,7 +32,10 @@
(progn (progn
(setopt initial-scratch-message (setopt initial-scratch-message
";;; Type your Guile program here and evaluate it.\n\n") "\
;;; Type your Guile program here and evaluate it.
;;; `M-x cua-mode' to use Ctrl-C/X/Z for copy, cut, paste.
\n")
(scheme-mode) (scheme-mode)
(geiser-repl-import-module "(gnu)") (geiser-repl-import-module "(gnu)")
(geiser-repl-import-module "(nonguix)") (geiser-repl-import-module "(nonguix)")