Commit e4bf03f6 authored by Chong Yidong's avatar Chong Yidong
Browse files

(sh-mode-map): Don't assume that skeleton is loaded.

parent 32655809
......@@ -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] '("--"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment