Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 12 of 12
Ah. I never use C++, so I wouldn't know. =) From looking at the source of cc-mode, though, try adding the hook to c-mode-common-hook instead of c-mode-hook. That hook is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578

    Ah. I never use C++, so I wouldn't know. =)
    From looking at the source of cc-mode, though, try adding the hook to c-mode-common-hook instead of c-mode-hook. That hook is being run by all modes in cc-mode: c-mode, c++-mode, objc-mode and java-mode.
    To find out the current style, type C-: c-indentation-style RET.

  2. #12
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    Dolda,

    Yes, you were right about c-mode-common-hook. Thanks for the help.
    The best things in life are free.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •