>From 33c0061dc0b0a9c243f5f78abd0e44539fb0c1a0 Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Sun, 30 Aug 2015 15:05:42 +0200 Subject: [PATCH 3/5] Do not indent the content of `filecontents[*]' env. * style/filecontents.el ("filecontents"): Do not indent the content of `filecontents[*]' environment. --- ChangeLog | 3 +++ style/filecontents.el | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index df7b22a..4841e1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2015-08-30 Arash Esbati + * style/filecontents.el ("filecontents"): Do not indent the + content of `filecontents[*]' environment. + * style/hyperref.el ("hyperref"): Do not indent the content of `Form' environment. diff --git a/style/filecontents.el b/style/filecontents.el index 493b6c7..20cfa98 100644 --- a/style/filecontents.el +++ b/style/filecontents.el @@ -1,6 +1,6 @@ ;;; filecontents.el --- AUCTeX style for `filecontents.sty' -;; Copyright (C) 2013, 2014 Free Software Foundation, Inc. +;; Copyright (C) 2013--2015 Free Software Foundation, Inc. ;; Author: Mads Jensen ;; Maintainer: address@hidden @@ -38,7 +38,12 @@ (lambda () (LaTeX-add-environments '("filecontents" LaTeX-env-filecontents) - '("filecontents*" LaTeX-env-filecontents))) + '("filecontents*" LaTeX-env-filecontents)) + + (add-to-list 'LaTeX-indent-environment-list + '("filecontents" current-indentation)) + (add-to-list 'LaTeX-indent-environment-list + '("filecontents*" current-indentation))) LaTeX-dialect) (defun LaTeX-env-filecontents (environment) -- 2.5.0