Finds file lilypond-words.el from load-path."
(let ((fn nil)
(lp load-path)
- (words-file "lilypond.words.el"))
+ (words-file "lilypond-words.el"))
(while (and (> (length lp) 0) (not fn))
(setq fn (concat (car lp) "/" words-file))
(if (not (file-readable-p fn))
(progn (setq fn nil) (setq lp (cdr lp)))))
(if (not fn)
- (progn (message "Warning: `lilypond.words.el' not found in `load-path'. See `lilypond-init.el'.")
+ (progn (message "Warning: `lilypond-words.el' not found in `load-path'. See `lilypond-init.el'.")
(sit-for 5 0)))
fn))
(load-library "lilypond-font-lock")
(load-library "lilypond-indent")
+
+(defun LilyPond-guile ()
+ (interactive)
+ (require 'ilisp)
+ (guile "lilyguile" (LilyPond-command-expand (cadr (assoc "2Dvi" LilyPond-command-alist))
+ (funcall 'LilyPond-master-file)))
+ (comint-default-send (ilisp-process) "(define-module (*anonymous-ly-1*))")
+ (comint-default-send (ilisp-process) "(set! %load-path (cons \"/usr/share/ilisp/\" %load-path))")
+ (comint-default-send (ilisp-process) "(use-modules (guile-user) (guile-ilisp))")
+ (comint-default-send (ilisp-process) "(newline)"))
+
(provide 'lilypond-mode)
;;; lilypond-mode.el ends here