cp-lily - add autoload and auto-mode specifiers

This commit is contained in:
contrapunctus 2019-08-12 11:10:22 +05:30
parent 7496b52c3a
commit 701141cd7b
1 changed files with 7 additions and 5 deletions

View File

@ -1,7 +1,5 @@
;;;; Hacks for Lilypond work
(use-package lilypond-mode
:load-path "../user/"
:bind (("C-c C-i" . LilyPond-info)
("M-]" . set-selective-display)
:map LilyPond-mode-map
@ -10,10 +8,14 @@
("M-P" . cp-upper-level)
("M-N" . cp-lower-level)
("C-c C-w" . cp-ly-wrap-para))
:commands LilyPond-mode
:config (mapc (lambda (func) (add-hook 'LilyPond-mode-hook func))
'(#'subword-mode
#'god-local-mode
#'cp/turn-on-truncate-lines))
'(subword-mode
god-local-mode
(lambda () (turn-on-font-lock))))
:load-path "../user/"
:mode (("\\.ly$" . LilyPond-mode)
("\\.ily$" . LilyPond-mode))
(defalias 'string-to-int #'string-to-number))
(defvar cp/ly-definition-rx