Function: robot-mode
robot-mode is an interactive and natively compiled function defined in
robot-mode.el.
Signature
(robot-mode)
Documentation
Major mode for editing Robot framework files.
C-c C-SPC robot-mode-add-argument
C-c C-a robot-mode-align-region-or-defun
C-c C-j robot-mode-split-continuation
In addition to any hooks its parent mode prog-mode might have run,
this mode runs the hook robot-mode-hook, as the final or penultimate
step during initialization.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/2wci9ylra7w4lc4cczbdr19c98f107vr-emacs-packages-deps/share/emacs/site-lisp/elpa/robot-mode-20240721.1023/robot-mode.el
;;;###autoload
(define-derived-mode robot-mode prog-mode "Robot"
"Major mode for editing Robot framework files.
\\{robot-mode-map}"
(setq-local indent-line-function #'robot-mode-indent-line)
(setq-local electric-indent-inhibit t)
(setq-local font-lock-defaults '(robot-mode-font-lock-keywords nil t))
(setq-local comment-start "#")
(setq-local comment-start-skip "#+ *")
(setq-local beginning-of-defun-function #'robot-mode-beginning-of-defun)
(setq-local end-of-defun-function #'robot-mode-end-of-defun)
(setq-local syntax-propertize-function #'robot-mode-syntax-propertize)
;; Due to to the symbol syntax expanding to single space between non-space
;; characters, broaden the whitespace definition of isearch to include
;; literal spaces. This fixes the isearch-forward for strings containing
;; spaces.
(setq-local search-whitespace-regexp "\\(\\s-\\| \\)+")
(setq-local imenu-generic-expression robot-mode-imenu-generic-expression)
(setq-local outline-regexp "^\\*\\|^\\sw"))