Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On windows 10, clang-format.el is not obeying .clang-format but it follows _clang-format file from the project Repository. #1

Closed
justinjk007 opened this issue Aug 5, 2017 · 1 comment

Comments

@justinjk007
Copy link

justinjk007 commented Aug 5, 2017

So I have this is my init.el

    (use-package clang-format
      :init
      (global-set-key (kbd "C-c r") 'clang-format-region)
      (global-set-key (kbd "C-c u") 'clang-format-buffer)
      :config
      (setq clang-format-style-option "file")
      )

And this in my .clang-format

    BasedOnStyle: Google
    Language: Cpp
    Standard: Cpp11
    Cpp11BracedListStyle: true
    IndentWidth: 4
    ColumnLimit: 100
    BreakBeforeBraces: Linux
    AlignAfterOpenBracket: Align
    AlignConsecutiveAssignments: true
    AlignOperands: true
    AllowShortFunctionsOnASingleLine: Empty
    DerivePointerAlignment: false
    PointerAlignment: Left

If I make a _clang-format in any Repository or project directory, then clang-format obeys that file, but It never follows .clang-format file from my home directory , any reason why ?

@wasamasa
Copy link

wasamasa commented Aug 5, 2017

Just so you know, this repository is the wrong place to report errors as it contains a copy of the official elisp integration code. Furthermore, the problem is within the tool, not the elisp code. The right place to submit bugs to is https://bugs.llvm.org/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants