Lines Matching defs:indent
53 ;; simplistic auto-indent feature; hopefully it'll help more than get in
54 ;; your way. For the most part it tries to indent to the same level as
56 ;; on the previous line that tell it to use extra indent or outdent.
104 (defcustom snmp-special-indent t
110 (defcustom snmp-indent-level 4
115 (defcustom snmp-tab-always-indent nil
281 (define-key snmp-mode-map "\t" 'snmp-indent-command)
338 (make-local-variable 'indent-line-function)
339 (setq indent-line-function (if snmp-special-indent
340 'snmp-indent-line
341 'indent-to-left-margin))
449 (defun snmp-calculate-indent ()
453 open\" string, add `snmp-indent-level' to it. If it was a \"macro close\"
454 string, subtract `snmp-indent-level'. Otherwise, use the same indentation
466 snmp-indent-level)
469 (- snmp-indent-level))
473 (defun snmp-indent-line ()
475 (let ((indent (snmp-calculate-indent))
481 (setq shift-amt (- indent (current-column)))
485 (indent-to indent))
491 (defun snmp-indent-command ()
493 If `snmp-tab-always-indent' is t, always reindent the current line when
495 If `snmp-tab-always-indent' is nil, reindent the current line if point is
498 (if (and (not snmp-tab-always-indent)
503 (snmp-indent-line)))