Now we have to edit lilypond-mode.el. Right click on the LilyPond.app. Show packages: navigate to Applications/LilyPond.app/Contents/Resources/share/emacs/site-lisp
Open lilypond-mode.el in emacs type M-g-g Go to line 335 and change (defcustom LilyPond-lilypond-command change to (defcustom LilyPond-lilypond-command "/Applications/LilyPond.app/Contents/Resources/bin/lilypond" "Command used to compile LY files." :group 'LilyPond :type 'string)
We want to use our Preview.App for PS-Files, so change the above lines, too.
(defcustom LilyPond-ps-command " /Applications/Preview.app/Contents/MacOS/Preview --watch" "Command used to display PS files."
:group 'LilyPond :type 'string)
The same is with our standard PDF-Viewer, we choose Safari for URL-Handling.
(defcustom LilyPond-pdf-command "/Applications/Safari.app/Contents/MacOS/Safari“ "Command used to display PDF files."
:group 'LilyPond :type 'string)
/* not yet working as expected
Change MIDI
(defcustom LilyPond-midi-command "open" "Command used to play MIDI files."
Change MIDI-Player to Logic Pro X.
(defcustom LilyPond-all-midi-command "/Applications/Logic\ Pro\ X.app/Contents/MacOS/Logic\ Pro\ X -ia" "Command used to play MIDI files."
:group 'LilyPond :type 'string) */
save with M-x-s
on a Mac now type alt-shift-:
type (find-file user-init-file)
standard lilypond.mode-config-suggestions do not use .ily-files, so I modified them too. Copy and Paste the following to your .emacs