Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2444)

Issue 333600043: Make emacs C++ style setting work for me (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
6 years, 2 months ago by Dan Eble
Modified:
6 years, 1 month ago
Reviewers:
Malte Meyn
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Make emacs C++ style setting work for me In the .dir-locals.el file for emacs, instead of setting c-default-style, set c-file-style. The former was not setting the style for the files I opened.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M .dir-locals.el View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2
Malte Meyn
“Make […] work for *me*” sounds as if this isn’t a general problem? I don’t ...
6 years, 2 months ago (2018-02-07 07:41:09 UTC) #1
Dan Eble
6 years, 2 months ago (2018-02-07 13:07:28 UTC) #2
On 2018/02/07 07:41:09, Malte Meyn wrote:
> “Make […] work for *me*” sounds as if this isn’t a general problem? I don’t
know
> *anything* about emacs (except that vim is superior :P) but googling
> c-default-style makes me wonder whether this isn’t only a problem of your
emacs
> config.

I am using Emacs 25.3.1.  My experience was that when c-default-style was set in
the dir-locals, when I would open a lily/*.cc file, c-default-style would indeed
change locally to the value in dir-locals, but the indentation mode of the
buffer was set according to the original value of c-default-style in my emacs
configuration.

The documentation for c-indentation-style says this:

    Name of the currently installed style.
    Don’t change this directly; call ‘c-set-style’ instead, or set the variable
    ‘c-file-style’ in the file’s Local Variable list.

Therefore, I tried setting c-file-style, and now the indentation mode is
correct.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b