Mercurial > hg > xemacs-beta
diff lisp/modes/icon.el @ 142:1856695b1fa9 r20-2b5
Import from CVS: tag r20-2b5
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:33:18 +0200 |
parents | ac2d302a0011 |
children | 25f70ba0133c |
line wrap: on
line diff
--- a/lisp/modes/icon.el Mon Aug 13 09:32:45 2007 +0200 +++ b/lisp/modes/icon.el Mon Aug 13 09:33:18 2007 +0200 @@ -71,25 +71,44 @@ (modify-syntax-entry ?| "." icon-mode-syntax-table) (modify-syntax-entry ?\' "\"" icon-mode-syntax-table)) -(defvar icon-indent-level 4 - "*Indentation of Icon statements with respect to containing block.") -(defvar icon-brace-imaginary-offset 0 - "*Imagined indentation of a Icon open brace that actually follows a statement.") -(defvar icon-brace-offset 0 - "*Extra indentation for braces, compared with other text in same context.") -(defvar icon-continued-statement-offset 4 - "*Extra indent for lines not starting new statements.") -(defvar icon-continued-brace-offset 0 +(defgroup icon nil + "Mode for editing icon code." + :group 'languages) + + +(defcustom icon-indent-level 4 + "*Indentation of Icon statements with respect to containing block." + :type 'integer + :group 'icon) +(defcustom icon-brace-imaginary-offset 0 + "*Imagined indentation of a Icon open brace that actually follows a statement." + :type 'integer + :group 'icon) +(defcustom icon-brace-offset 0 + "*Extra indentation for braces, compared with other text in same context." + :type 'integer + :group 'icon) +(defcustom icon-continued-statement-offset 4 + "*Extra indent for lines not starting new statements." + :type 'integer + :group 'icon) +(defcustom icon-continued-brace-offset 0 "*Extra indent for substatements that start with open-braces. -This is in addition to icon-continued-statement-offset.") +This is in addition to icon-continued-statement-offset." + :type 'integer + :group 'icon) -(defvar icon-auto-newline nil +(defcustom icon-auto-newline nil "*Non-nil means automatically newline before and after braces -inserted in Icon code.") +inserted in Icon code." + :type 'boolean + :group 'icon) -(defvar icon-tab-always-indent t +(defcustom icon-tab-always-indent t "*Non-nil means TAB in Icon mode should always reindent the current line, -regardless of where in the line point is when the TAB command is used.") +regardless of where in the line point is when the TAB command is used." + :type 'integer + :group 'icon) ;;;###autoload (defun icon-mode ()