445 |
;; initial contents tries to be the last element |
;; initial contents tries to be the last element |
446 |
;; on the syntactic analysis list for the current |
;; on the syntactic analysis list for the current |
447 |
;; line |
;; line |
448 |
(let* ((syntax (c-guess-basic-syntax)) |
(and c-buffer-is-cc-mode |
449 |
(len (length syntax)) |
(let* ((syntax (c-guess-basic-syntax)) |
450 |
(ic (format "%s" (car (nth (1- len) syntax))))) |
(len (length syntax)) |
451 |
(cons ic 0)) |
(ic (format "%s" (car (nth (1- len) syntax))))) |
452 |
|
(cons ic 0))) |
453 |
))) |
))) |
454 |
(offset (c-read-offset langelem))) |
(offset (c-read-offset langelem))) |
455 |
(list langelem offset current-prefix-arg))) |
(list langelem offset current-prefix-arg))) |
579 |
|
|
580 |
If you edit many different styles of C (or C++, Objective-C, Java, |
If you edit many different styles of C (or C++, Objective-C, Java, |
581 |
etc) at the same time, you probably want the CC Mode style variables |
etc) at the same time, you probably want the CC Mode style variables |
582 |
to be buffer local. If you do, it's advicable to set any CC Mode |
to be buffer local. If you do, it's advisable to set any CC Mode |
583 |
style variables in a hook function (e.g. off of `c-mode-common-hook'), |
style variables in a hook function (e.g. off of `c-mode-common-hook'), |
584 |
instead of at the top level of your ~/.emacs file. |
instead of at the top level of your ~/.emacs file. |
585 |
|
|