>From 7dc1dde9a22d7c9b73a2cf71b08a25040acd7c4a Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Sat, 22 Aug 2015 11:50:39 +0200 Subject: [PATCH 4/5] Do not indent the content of the `filecontents[*]'-env. * style/filecontents.el ("filecontents"): Do not indent the content of the `filecontents[*]'-env. --- ChangeLog | 3 +++ style/filecontents.el | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 80978cf..8ca8af7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2015-08-22 Arash Esbati + * style/filecontents.el ("filecontents"): Do not indent the + content of the `filecontents[*]'-env. + * style/hyperref.el ("hyperref"): Do not indent the content of the `Form'-env. 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