[LU-1641] The Lustre source base needs editor hints Created: 17/Jul/12  Updated: 28/Oct/15  Resolved: 28/Oct/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.3.0
Fix Version/s: None

Type: Improvement Priority: Trivial
Reporter: Bruce Korb (Inactive) Assignee: WC Triage
Resolution: Won't Fix Votes: 0
Labels: None
Environment:

Editing


Attachments: File lustre-emacs.el    
Rank (Obsolete): 11007

 Description   

The lustre sources are intending to follow linux kernel coding conventions.
Editors can be very helpful in this, when they understand the conventions.
They can make themselves troublesome when they do not.

It is fairly easy to customize emacs to be helpful, without adding the
chicken scratches (mode lines) that tell emacs how to treat C program
syntactic elements.

Lustre can easily accommodate this by adding a $top/build/lustre-emacs.el
and a $top/.dir-locals.el file to the source tree. The "lustre-emacs.el"
would define the customization functions and the ".dir-locals.el" would
specify using them for c-mode and sh-script-mode modes. This avoids
polluting file content with coding style scratchings.

There might be something similar for vi, but I wouldn't know.

===== .dir-locals.el:

( (nil . ( (indent-tabs-mode . t) (fill-column . 72) )

)

(c-mode . ( (c-file-style . "linux-tabs-only") )

)

)



 Comments   
Comment by Andreas Dilger [ 28/Oct/15 ]

Close old bug

Generated at Sat Feb 10 01:18:25 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.