1 @c -*- coding: utf-8; mode: texinfo; -*-
2 @c This file is part of lilypond-program.tely
4 Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
6 When revising a translation, copy the HEAD committish of the
7 version that you are working on. See TRANSLATION for details.
10 @c was "INSTALL - compiling and installing GNU LilyPond"
14 This chapter discusses how to set up LilyPond to integrate with various
18 * Notes for the MacOS X app::
19 * Text editor support::
23 @node Notes for the MacOS X app
24 @section Notes for the MacOS X app
26 The scripts (such as lilypond-book, convert-ly, abc2ly, and even
27 lilypond itself) are also
28 included inside MacOS X .app. They can be run from the command line by
29 invoking them directly, e.g.
32 @var{path/to}/LilyPond.app/Contents/Resources/bin/lilypond
36 The same is true of the other scripts in that directory, including
37 lilypond-book, convert-ly, abc2ly, etc.
39 Alternatively, you may create scripts which add the path
40 automatically. Create a directory to store these scripts,
47 Create a file called @code{lilypond} which contains
50 exec @var{path/to}/LilyPond.app/Contents/Resources/bin/lilypond "$@@"
53 Create similar files @code{lilypond-book}, @code{convert-ly}, and
54 any other helper programs you use (@code{abc2ly}, @code{midi2ly},
55 etc). Simply replace the @code{bin/lilypond} with
56 @code{bin/convert-ly} (or other program name) in the above file.
58 Make the file executable,
64 Now, add this directory to your path. Modify (or create)
65 a file called @code{.profile} in your home directory such that it contains
68 export PATH=$PATH:~/bin
72 This file should end with a blank line.
74 Note that @var{path/to} will generally be @code{/Applications/}.
77 @node Text editor support
78 @section Text editor support
86 @subsection Emacs mode
88 An Emacs mode for entering music and running LilyPond is contained in
89 the source archive in the @file{elisp} directory. Do @command{make
90 install} to install it to @var{elispdir}. The file @file{lilypond-init.el}
91 should be placed to @var{load-path}@file{/site-start.d/} or appended
92 to your @file{~/.emacs} or @file{~/.emacs.el}.
94 As a user, you may want add your source path (e.g. @file{~/site-lisp/}) to
95 your @var{load-path} by appending the following line (as modified) to your
97 @c any reason we do not advise: (push "~/site-lisp" load-path)
100 (setq load-path (append (list (expand-file-name "~/site-lisp")) load-path))
108 A Vim mode for entering music and running LilyPond is contained in the
109 source archive in @code{$VIM} directory.
111 The LilyPond file type is detected if the file @file{~/.vim/filetype.vim} @c
112 has the following content
115 if exists("did_load_filetypes")
118 augroup filetypedetect
119 au! BufNewFile,BufRead *.ly setf lilypond
124 Please include this path by appending the following line to your
129 set runtimepath+=/usr/local/share/lilypond/$@{LILYPOND_VERSION@}/vim/
134 where $@{LILYPOND_VERSION@} is your lilypond version. If Lilypond was not
135 installed in @file{/usr/local/}, then change this path accordingly.