From 0ac3a01c46f0d991b94c6227ccf5c13e7e57cc83 Mon Sep 17 00:00:00 2001 From: USAMI Kenta Date: Tue, 6 Mar 2018 02:54:50 +0900 Subject: [PATCH 1/2] Add define-key "C-c C-w" as subword-mode explicitly By default c-subword-mode is assigned, this is an obsoleted alias. This change was introduced in 5a1f99d89ee675aacc4e4868f772e8f78ffaa159, but there is no point in toggling the mode when defining a keymap. https://github.com/ejmr/php-mode/commit/5a1f99d89ee675aacc4e4868f772e8f78ffaa159 GitHub-Issue: 89 --- php-mode.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/php-mode.el b/php-mode.el index f30888c0..865b2217 100644 --- a/php-mode.el +++ b/php-mode.el @@ -423,10 +423,7 @@ local variables, set NIL." ;; https://www.gnu.org/software/emacs/manual/html_node/ccmode/Subword-Movement.html ;; ;; for more information about Submode Word. - (if (boundp 'subword-mode) - (if subword-mode - (subword-mode nil) - (subword-mode t))) + (define-key map (kbd "C-c C-w") 'subword-mode) ;; We inherit c-beginning-of-defun and c-end-of-defun from CC Mode ;; but we have two replacement functions specifically for PHP. We From 17a813c839cce100b0e5d155765ef3536639ee62 Mon Sep 17 00:00:00 2001 From: USAMI Kenta Date: Tue, 6 Mar 2018 03:07:05 +0900 Subject: [PATCH 2/2] It's Subword mode. --- php-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-mode.el b/php-mode.el index 865b2217..a3887e85 100644 --- a/php-mode.el +++ b/php-mode.el @@ -422,7 +422,7 @@ local variables, set NIL." ;; ;; https://www.gnu.org/software/emacs/manual/html_node/ccmode/Subword-Movement.html ;; - ;; for more information about Submode Word. + ;; for more information about Subword mode. (define-key map (kbd "C-c C-w") 'subword-mode) ;; We inherit c-beginning-of-defun and c-end-of-defun from CC Mode