Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Issue 1199133005: Subzero: Make life a little easier for emacs users. (Closed)

Created:
5 years, 6 months ago by Jim Stichnoth
Modified:
5 years, 6 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Subzero: Make life a little easier for emacs users. Emacs will try to execute .dir-locals.el whenever loading a file under the subzero directory. It sets local variables depending on the mode. Set the fill-column to 80 for c++-mode, c-mode, and python-mode. The main use is when using M-q to reformat multi-line comments. Disable tabs (use spaces instead) in c++-mode, c-mode, and python-mode. Set the tab-width to 2 spaces in python-mode. (The tab-width doesn't really matter in c++-mode or c-mode thanks to clang-format.) BUG= none R=kschimpf@google.com Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=8fa8b4378ac13fa0ed0196e8dd1a5c642a8049d7

Patch Set 1 #

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

Messages

Total messages: 5 (1 generated)
Jim Stichnoth
5 years, 6 months ago (2015-06-23 18:03:55 UTC) #2
John
Perhaps this will avoid the need for -*- C++ -*-: (add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
5 years, 6 months ago (2015-06-23 18:10:54 UTC) #3
Karl
lgtm
5 years, 6 months ago (2015-06-23 18:11:45 UTC) #4
Jim Stichnoth
5 years, 6 months ago (2015-06-23 18:16:17 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
8fa8b4378ac13fa0ed0196e8dd1a5c642a8049d7 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698