Variable: antlr-tab-offset-alist

antlr-tab-offset-alist is a customizable variable defined in antlr-mode.el.gz.

Value

((antlr-mode nil 4 nil) (java-mode "antlr" 4 nil))

Documentation

Alist to determine whether to use ANTLR's convention for TABs.

Each element looks like (MAJOR-MODE REGEXP TAB-WIDTH INDENT-TABS-MODE). The first element whose MAJOR-MODE is nil or equal to major-mode and whose REGEXP is nil or matches variable buffer-file-name(var)/buffer-file-name(fun) is used to set tab-width and indent-tabs-mode(var)/indent-tabs-mode(fun). This is useful to support both ANTLR's and Java's indentation styles. Used by antlr-set-tabs.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
(defcustom antlr-tab-offset-alist
  '((antlr-mode nil 4 nil)
    (java-mode "antlr" 4 nil))
  "Alist to determine whether to use ANTLR's convention for TABs.
Each element looks like \(MAJOR-MODE REGEXP TAB-WIDTH INDENT-TABS-MODE).
The first element whose MAJOR-MODE is nil or equal to `major-mode' and
whose REGEXP is nil or matches variable `buffer-file-name' is used to
set `tab-width' and `indent-tabs-mode'.  This is useful to support both
ANTLR's and Java's indentation styles.  Used by `antlr-set-tabs'."
  :type '(repeat (group :value (antlr-mode nil 8 nil)
			(choice (const :tag "All" nil)
				(function :tag "Major mode"))
			(choice (const :tag "All" nil) regexp)
			(integer :tag "Tab width")
			(boolean :tag "Indent-tabs-mode"))))