From 42e7eebc4071b97c9ca31e34f82ff3d3fcaad5f9 Mon Sep 17 00:00:00 2001 From: ssm Date: Wed, 6 Feb 2008 07:26:28 +0000 Subject: [PATCH] Add more settings to vcl-mode.el, and make them customizable git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2434 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-tools/emacs/vcl-mode.el | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/varnish-tools/emacs/vcl-mode.el b/varnish-tools/emacs/vcl-mode.el index 600a8ddc..b69b8a92 100644 --- a/varnish-tools/emacs/vcl-mode.el +++ b/varnish-tools/emacs/vcl-mode.el @@ -31,8 +31,16 @@ ;;; $Id$ ;;; -(defconst vcl-indent-level 8 - "The level of indentation (number of space characters) in VCL-mode.") +(defgroup vcl nil + "Customizations for vcl-mode") + +(defcustom vcl-indent-level 8 + "*The level of indentation (number of space characters) in VCL-mode." + :type 'integer :group 'vcl) + +(defcustom vcl-indent-tabs-mode nil + "*Allow tabs when indentation in vcl-mode if non-nil" + :type 'boolean :group 'vcl) ;; I just love standards, there are so many to choose from (if (string-match "XEmacs\\|Lucid" emacs-version) @@ -158,6 +166,7 @@ (run-hooks 'vcl-mode-hook) (set (make-local-variable 'indent-line-function) 'vcl-indent-line) + (setq indent-tabs-mode vcl-indent-tabs-mode) ) (defvar vcl-mode-hook nil) -- 2.39.5