mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(sh-mode-map): Don't assume that skeleton is loaded.
This commit is contained in:
parent
32655809a8
commit
e4bf03f6a8
1 changed files with 7 additions and 2 deletions
|
|
@ -495,8 +495,13 @@ This is buffer-local in every such buffer.")
|
|||
:help "Set the indentation for the current line"))
|
||||
|
||||
(define-key menu-map [sh-pair]
|
||||
'(menu-item "Insert braces and quotes in pairs" (lambda () (interactive) (setq skeleton-pair (not skeleton-pair)))
|
||||
:button (:toggle . skeleton-pair)
|
||||
'(menu-item "Insert braces and quotes in pairs"
|
||||
(lambda ()
|
||||
(interactive)
|
||||
(require 'skeleton)
|
||||
(setq skeleton-pair (not skeleton-pair)))
|
||||
:button (:toggle . (and (boundp 'skeleton-pair)
|
||||
skeleton-pair))
|
||||
:help "Inserting a brace or quote automatically inserts the matching pair"))
|
||||
|
||||
(define-key menu-map [sh-s0] '("--"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue