From: Masatake Y. <je...@gy...> - 2004-12-19 07:27:14
|
> I've now added cc-subword.el and the adaptions in cc-cmds.el to the > development branch of the CC Mode cvs. You are welcome to check it out > by using the anonymous cvs (see cc-mode.sf.net/anoncvs.php). It works fine. Could you apply the following small patch? Masatake YAMATO Index: cc-subword.el =================================================================== RCS file: /cvsroot/cc-mode/cc-mode/cc-subword.el,v retrieving revision 1.1 diff -u -r1.1 cc-subword.el --- cc-subword.el 18 Dec 2004 20:49:07 -0000 1.1 +++ cc-subword.el 19 Dec 2004 07:19:01 -0000 @@ -48,7 +48,7 @@ ;; M-f `forward-word' `c-forward-subword' ;; M-f `backward-word' `c-backward-subword' ;; M-@ `mark-word' `c-mark-subword' -;; M-d `kill-word' `c-kill-word' +;; M-d `kill-word' `c-kill-subword' ;; M-DEL `backward-kill-word' `c-backward-kill-subword' ;; M-t `transpose-words' `c-transpose-subword' ;; M-c `capitalize-word' `c-capitalize-subword' @@ -59,6 +59,13 @@ ;; in your .emacs or somewhere, the key you changed to is also used ;; in a subword oriented command. +;; To make the mode turn on automatically, put the following code +;; to your .emacs: +;; +;; (add-hook 'c-mode-common-hook +;; (lambda () (c-subword-move-mode 1))) +;; + ;; Acknowledgment: ;; The regular expressions to detect subwords is mostly based on ;; the old `c-forward-into-nomenclature' originally contributed by |