Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-1641

The Lustre source base needs editor hints

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Fix
    • Trivial
    • None
    • Lustre 2.3.0
    • None
    • Editing
    • 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") )

      )

      )

      Attachments

        Activity

          People

            wc-triage WC Triage
            bkorb Bruce Korb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: