Merged in enordstr/backend-database/enordstr/add-emacs-dir-locals-el (pull request #146)

Add PostgreSQL's .dir-locals.el style file

Approved-by: Olof Rensfelt <olof@iobeam.com>
Approved-by: ci-timescale <erik@timescale.com>
Approved-by: Matvey Arye <cevian@gmail.com>
This commit is contained in:
Erik Nordström 2017-04-28 14:24:19 +00:00
commit fd93b68656
6 changed files with 20 additions and 5 deletions

20
.dir-locals.el Normal file
View File

@ -0,0 +1,20 @@
;; see also src/tools/editors/emacs.samples in the PostgreSQL source
;; tree for more complete settings
((c-mode . ((c-basic-offset . 4)
(c-file-style . "bsd")
(fill-column . 78)
(indent-tabs-mode . t)
(tab-width . 4)))
(dsssl-mode . ((indent-tabs-mode . nil)))
(nxml-mode . ((indent-tabs-mode . nil)))
(perl-mode . ((perl-indent-level . 4)
(perl-continued-statement-offset . 4)
(perl-continued-brace-offset . 4)
(perl-brace-offset . 0)
(perl-brace-imaginary-offset . 0)
(perl-label-offset . -2)
(indent-tabs-mode . t)
(tab-width . 4)))
(sgml-mode . ((fill-column . 78)
(indent-tabs-mode . nil))))

View File

@ -1,4 +1,3 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
#ifndef _COMPAT_ENDIAN_H_ #ifndef _COMPAT_ENDIAN_H_
#define _COMPAT_ENDIAN_H_ #define _COMPAT_ENDIAN_H_

View File

@ -1,4 +1,3 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* ----------------------------------------------------------------------------- */ /* ----------------------------------------------------------------------------- */
/* MurmurHash3 was written by Austin Appleby, and is placed in the public */ /* MurmurHash3 was written by Austin Appleby, and is placed in the public */
/* domain. The author hereby disclaims copyright to this source code. */ /* domain. The author hereby disclaims copyright to this source code. */

View File

@ -1,4 +1,3 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
#include "pgmurmur3.h" #include "pgmurmur3.h"
#include <catalog/pg_type.h> #include <catalog/pg_type.h>

View File

@ -1,4 +1,3 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
#ifndef _PGHASHLIB_H_ #ifndef _PGHASHLIB_H_
#define _PGHASHLIB_H_ #define _PGHASHLIB_H_

View File

@ -1,4 +1,3 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
#include <unistd.h> #include <unistd.h>
#include <postgres.h> #include <postgres.h>