X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lilypond-mode.el;fp=lilypond-mode.el;h=e06325f8b730dee7d38e4bc5f4252d04435552d9;hb=e7635844a1a2afeac4008447816f8664a1d25861;hp=fa3fc55e4b79cc9151d9d9fae2826f5bf40cc1cd;hpb=d915ae794be635301e275cd659886f4315f78035;p=lilypond.git diff --git a/lilypond-mode.el b/lilypond-mode.el index fa3fc55e4b..e06325f8b7 100644 --- a/lilypond-mode.el +++ b/lilypond-mode.el @@ -689,6 +689,7 @@ command." (define-key LilyPond-mode-map ">" 'LilyPond-electric-close-paren) (define-key LilyPond-mode-map "}" 'LilyPond-electric-close-paren) (define-key LilyPond-mode-map "]" 'LilyPond-electric-close-paren) + (define-key LilyPond-mode-map "\C-c\C-x" 'LilyPond-mode-context-set-syntax-table) ; try it (if (string-match "XEmacs\\|Lucid" emacs-version) (define-key LilyPond-mode-map [iso-left-tab] 'LilyPond-autocompletion) (define-key LilyPond-mode-map [iso-lefttab] 'LilyPond-autocompletion)) @@ -1112,7 +1113,7 @@ LilyPond-xdvi-command\t\tcommand to display dvi files -- bit superfluous" (make-local-variable 'indent-line-function) (setq indent-line-function 'LilyPond-indent-line) - (set-syntax-table LilyPond-mode-syntax-table) + (LilyPond-mode-set-syntax-table '(?\< ?\> ?\{ ?\})) (setq major-mode 'LilyPond-mode) (setq mode-name "LilyPond") (setq local-abbrev-table LilyPond-mode-abbrev-table)