Files
valgrind/.dir-locals.el
Andreas Arnez 43699f30f6 Add Emacs configuration files
This adds a configuration file ".dir-locals.el" for Emacs to the topmost
directory of the Valgrind source tree, and another such file to the
directory drd/tests.  These files contain per-directory local Emacs
variables.

The following settings are performed:

* The base C style is set to "Linux", indentation is set to 3 columns
  per level, the use of tabs for indentation is disabled, and the fill
  column is set to 80.

* The source files in drd/tests use 2 instead of 3 columns per indentation
  level.
2018-12-05 18:15:57 -08:00

19 lines
545 B
EmacsLisp

;; Emacs settings for Valgrind.
(
;; Format used to turn a bug number into a URL (when displaying it).
(nil . ((bug-reference-url-format . "http://bugs.kde.org/show_bug.cgi?id=%s")))
;; Standard settings for editing C source files.
(c-mode . (
;; Apply the Linux style as a base.
(c-file-style . "linux")
;; Use spaces instead of tabs for indentation.
(indent-tabs-mode . nil)
;; Indent 3 columns per level.
(c-basic-offset . 3)
;; Lines should be limited to 80 columns.
(fill-column . 80)
))
)