Skip to content

Commit 0ac3a01

Browse files
committed
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 5a1f99d, but there is no point in toggling the mode when defining a keymap. 5a1f99d GitHub-Issue: 89
1 parent 161449b commit 0ac3a01

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

php-mode.el

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,7 @@ local variables, set NIL."
423423
;; https://www.gnu.org/software/emacs/manual/html_node/ccmode/Subword-Movement.html
424424
;;
425425
;; for more information about Submode Word.
426-
(if (boundp 'subword-mode)
427-
(if subword-mode
428-
(subword-mode nil)
429-
(subword-mode t)))
426+
(define-key map (kbd "C-c C-w") 'subword-mode)
430427

431428
;; We inherit c-beginning-of-defun and c-end-of-defun from CC Mode
432429
;; but we have two replacement functions specifically for PHP. We

0 commit comments

Comments
 (0)