Manual
4. Menus
There are 2 menus: Smarty and Sources. All theses menus can be accessed
from the menubar or from the right click. This chapter describes each menus.
4.1 Smarty
This is the main menu of Smarty Mode. It allows an easy access to the main features of the Smarty Mode:
Templates (see Templates) and Options (see Customization).
This menu contains also 3 functions that are discussed in the next part.
4.1.1 Functions
-
- `smarty-show-messages'
Menu: Smarty -> Show Messages
Keybinding: C-c M-m
Description: This function opens the *Messages* buffer to display previous error messages.
- `smarty-doc-mode'
Menu: Smarty -> Smarty Mode Documentation
Keybinding: C-c C-h
Description: This function opens the *Help* buffer and prints in it the Smarty Mode documentation.
- `smarty-version'
Menu: Smarty -> Version
Keybinding: C-c C-v
Description: This function displays in the minibuffer the current Smarty Mode version with the timestamp.
4.2 Sources
The Sources menu shows the Smarty files in the current directory. If you add or delete a file in
the current directory, you need to refresh the menu.
4.2.1 Customization
-
- `smarty-source-file-menu'
Type: boolean
Default value: `t'
Description: If `t'; the Sources menu is enabled. This
menu contains the list of Smarty file located in the current directory. The Sources menu scans
the directory when a file is opened.
4.2.2 Functions
-
- `smarty-add-source-files-menu'
Menu: Sources -> *Rescan*
Keybinding: C-c C-s C-u
Description: This function is used to refresh the Sources menu.
|