1
Fork 0
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:
Chong Yidong 2008-09-24 22:51:09 +00:00
parent 32655809a8
commit e4bf03f6a8

View file

@ -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] '("--"))