We are hiring ! See our job offers.
Revision a029edd32d5cd41dbdac145189d9b1a08421114e authored by Boud Roukema on 18 April 2021, 21:32:11 UTC, committed by Boud Roukema on 18 April 2021, 21:32:11 UTC
1 parent 11b5f36
Raw File
.dir-locals.el
;; This files contains Emacs Directory Local Variables.
;;
;; Emacs is an extensible, customizable, free/libre text editor.  It
;; allows specification of certain settings that will be applied to
;; all files in current directory and its subdirectories. This is
;; useful in order to automatically enforce certain coding conventions
;; for all contributors of Gnuastro, like the maximum length of lines
;; or the number of spaces to be used for indentation.
;;
;; For more information see (info "(emacs) Directory Variables")
;;
;; Copyright (C) 2017-2020 Mosè Giordano <mose@gnu.org>
;; Copyright (C) 2018-2020 Mohammad Akhlaghi <mohammad@akhlaghi.org>
;;
;; Copying and distribution of this file, with or without modification,
;; are permitted in any medium without royalty provided the copyright
;; notice and this notice are preserved.  This file is offered as-is,
;; without any warranty.

(
 ;; C files.
 (c-mode
  (c-basic-offset . 2)     ;; 2 spaces of indentation
  (c-file-style . "gnu"))  ;; GNU style for braces

 ;; Makefiles.
 (makefile-mode
  (indent-tabs-mode . t))  ;; Real TABs are important in makefiles

 ;; All other files (this has to be in the end).
 (nil
  (indent-tabs-mode . nil) ;; No tabs as indentation
  (fill-column . 75))      ;; 75-character wide lines
)
back to top