Function: sh-mode-menu

sh-mode-menu is an interactive and byte-compiled function defined in sh-script.el.gz.

Signature

(sh-mode-menu ARG1)

Documentation

Menu for Shell-Script mode.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/sh-script.el.gz
(easy-menu-define sh-mode-menu sh-mode-map
  "Menu for Shell-Script mode."
  '("Sh-Script"
    ["Backslash region" sh-backslash-region
     :help "Insert, align, or delete end-of-line backslashes on the lines in the region"]
    ["Set shell type..." sh-set-shell
     :help "Set this buffer's shell to SHELL (a string)"]
    ["Execute script..." executable-interpret
     :help "Run script with user-specified args, and collect output in a buffer"]
    ["Execute region" sh-execute-region
     :help "Pass optional header and region to a subshell for noninteractive execution"]
    "---"
    ;; Insert
    ["Case Statement" sh-case
     :help "Insert a case/switch statement"]
    ["For Loop" sh-for
     :help "Insert a for loop"]
    ["If Statement" sh-if
     :help "Insert an if statement"]
    ["Select Statement" sh-select
     :help "Insert a select statement "]
    ["Indexed Loop" sh-indexed-loop
     :help "Insert an indexed loop from 1 to n"]
    ["Options Loop" sh-while-getopts
     :help "Insert a while getopts loop."]
    ["While Loop" sh-while
     :help "Insert a while loop"]
    ["Repeat Loop" sh-repeat
     :help "Insert a repeat loop definition"]
    ["Until Loop" sh-until
     :help "Insert an until loop"]
    ["Addition..." sh-add
     :help "Insert an addition of VAR and prefix DELTA for Bourne (type) shell"]
    ["Function..." sh-function
     :help "Insert a function definition"]
    "---"
    ;; Other
    ["Insert braces and quotes in pairs" electric-pair-mode
     :style toggle
     :selected (bound-and-true-p electric-pair-mode)
     :help "Inserting a brace or quote automatically inserts the matching pair"]
    ["Set indentation" smie-config-set-indent
     :help "Set the indentation for the current line"]
    ["Show indentation" smie-config-show-indent
     :help "Show the how the current line would be indented"]
    ["Learn buffer indentation" smie-config-guess
     :help "Learn how to indent the buffer the way it currently is"]))