[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Activating a mode in a hook

From: Emanuel Berg
Subject: Re: Activating a mode in a hook
Date: Fri, 18 Jul 2014 22:16:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Florian Lindner <address@hidden> writes:

> First question: When entering c++ mode it activates
> my-cc-style. It works finde regarding the namespaces,
> but c-basic-offset is still 8, not 2.

I don't understand your problem/purpose, but:

(setq c++-mode-hook (lambda () (setq c-basic-offset 2)))

> Second question: semantic-mode will be activated when
> entering c++ mode but then it's globablly activated,
> how can I activate it only for specific modes?

I don't use `sematic-mode' (what is it?) - but are you
able to activate it for specific modes manually
somehow? If so, do it again for the specific modes in a
hook, as above...

underground experts united

reply via email to

[Prev in Thread] Current Thread [Next in Thread]