]> err.no Git - varnish/commitdiff
Add more settings to vcl-mode.el, and make them customizable
authorssm <ssm@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 6 Feb 2008 07:26:28 +0000 (07:26 +0000)
committerssm <ssm@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 6 Feb 2008 07:26:28 +0000 (07:26 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2434 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-tools/emacs/vcl-mode.el

index 600a8ddcb661ca821fce3efccf92ba5880489417..b69b8a9269c47ce462f0e3a51514a41dd55e9501 100644 (file)
 ;;; $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)
   
   (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)