From: alpha22jp Date: Sun, 17 Jan 2021 13:08:26 +0900 Subject: Fixes #56: change key binding for saving modifications to C-cC-s Bug: https://github.com/alpha22jp/atomic-chrome/issues/56 Origin: https://github.com/alpha22jp/atomic-chrome/commit/ae2a6158a6a216dddbe281d0b0b00af7a2fdd558 --- README.md | 10 ++++++++++ atomic-chrome.el | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0282196..44ddead 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,16 @@ Then add the following lines to your `.emacs`. ## Customization +### Set auto-update mode + +Atomic Chrome for Emacs automatically reflects modifications to the browser by default as described above, but you can disable it by setting the variable below. + +``` emacs-lisp +(setq atomic-chrome-enable-auto-update nil) +``` + +In this case, you can apply the modifications to the browser with C-c C-s + ### Set major mode for editing buffer The default major mode of editing buffer is `text-mode`. You can change the major mode manually. If you want to use a different major mode as the default, set `atomic-chrome-default-major-mode` like below. diff --git a/atomic-chrome.el b/atomic-chrome.el index b139f77..2649a59 100644 --- a/atomic-chrome.el +++ b/atomic-chrome.el @@ -71,8 +71,8 @@ :group 'atomic-chrome) (defcustom atomic-chrome-enable-auto-update t - "If non-nil, edit on Emacs is reflected to Chrome instantly, \ -otherwise you need to type \"C-xC-s\" manually." + "If non-nil, edit on Emacs is reflected to the browser instantly, \ +otherwise you need to type \"C-cC-s\" manually." :type 'boolean :group 'atomic-chrome) @@ -243,7 +243,7 @@ where FRAME show raw data received." (defvar atomic-chrome-edit-mode-map (let ((map (make-sparse-keymap))) - (define-key map (kbd "C-x C-s") 'atomic-chrome-send-buffer-text) + (define-key map (kbd "C-c C-s") 'atomic-chrome-send-buffer-text) (define-key map (kbd "C-c C-c") 'atomic-chrome-close-current-buffer) map) "Keymap for minor mode `atomic-chrome-edit-mode'.")