From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/elisp/smie-customization.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 devdocs/elisp/smie-customization.html (limited to 'devdocs/elisp/smie-customization.html') diff --git a/devdocs/elisp/smie-customization.html b/devdocs/elisp/smie-customization.html new file mode 100644 index 00000000..c0d289ee --- /dev/null +++ b/devdocs/elisp/smie-customization.html @@ -0,0 +1,18 @@ +

Customizing Indentation

If you are using a mode whose indentation is provided by SMIE, you can customize the indentation to suit your preferences. You can do this on a per-mode basis (using the option smie-config), or a per-file basis (using the function smie-config-local in a file-local variable specification).

User Option: smie-config +

This option lets you customize indentation on a per-mode basis. It is an alist with elements of the form (mode . rules). For the precise form of rules, see the variable’s documentation; but you may find it easier to use the command smie-config-guess.

+
Command: smie-config-guess +

This command tries to work out appropriate settings to produce your preferred style of indentation. Simply call the command while visiting a file that is indented with your style.

+
Command: smie-config-save +

Call this command after using smie-config-guess, to save your settings for future sessions.

+
Command: smie-config-show-indent &optional move +

This command displays the rules that are used to indent the current line.

+
Command: smie-config-set-indent +

This command adds a local rule to adjust the indentation of the current line.

+
Function: smie-config-local rules +

This function adds rules as indentation rules for the current buffer. These add to any mode-specific rules defined by the smie-config option. To specify custom indentation rules for a specific file, add an entry to the file’s local variables of the form: eval: (smie-config-local '(rules)).

+
+

+ Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
+ https://www.gnu.org/software/emacs/manual/html_node/elisp/SMIE-Customization.html +

+
-- cgit v1.2.3