[ << External programs ] | [Címoldal][Tartalom][Tárgymutató][ ? ] | [ Suggestions for writing files >> ] | ||
[ < Point and click ] | [ Fel: External programs ] | [ Emacs mode > ] |
4.2 Text editor support
There is support for different text editors for LilyPond.
Emacs mode | ||
Vim mode | ||
Other editors |
[ << External programs ] | [Címoldal][Tartalom][Tárgymutató][ ? ] | [ Suggestions for writing files >> ] | ||
[ < Text editor support ] | [ Fel: Text editor support ] | [ Vim mode > ] |
Emacs mode
Emacs has a ‘lilypond-mode’, which provides keyword autocompletion, indentation, LilyPond specific parenthesis matching and syntax coloring, handy compile short-cuts and reading LilyPond manuals using Info. If ‘lilypond-mode’ is not installed on your platform, see below.
An Emacs mode for entering music and running LilyPond is contained in
the source archive in the ‘elisp’ directory. Do make
install
to install it to elispdir. The file ‘lilypond-init.el’
should be placed to load-path‘/site-start.d/’ or appended
to your ‘~/.emacs’ or ‘~/.emacs.el’.
As a user, you may want add your source path (e.g. ‘~/site-lisp/’) to your load-path by appending the following line (as modified) to your ‘~/.emacs’
(setq load-path (append (list (expand-file-name "~/site-lisp")) load-path))
[ << External programs ] | [Címoldal][Tartalom][Tárgymutató][ ? ] | [ Suggestions for writing files >> ] | ||
[ < Emacs mode ] | [ Fel: Text editor support ] | [ Other editors > ] |
Vim mode
For VIM, a ‘vimrc’ is supplied,
along with syntax coloring tools. A Vim mode for entering music and
running LilyPond is contained in the source archive in $VIM
directory.
The LilyPond file type is detected if the file ‘~/.vim/filetype.vim’ has the following content
if exists("did_load_filetypes") finish endif augroup filetypedetect au! BufNewFile,BufRead *.ly,*.ily setf lilypond augroup END
Please include this path by appending the following line to your ‘~/.vimrc’
set runtimepath+=/usr/local/share/lilypond/${LILYPOND_VERSION}/vim/
where ${LILYPOND_VERSION} is your LilyPond version. If LilyPond was not installed in ‘/usr/local/’, then change this path accordingly. The path may differ significantly. In Fedora the path leads to the current version of Vim instead of Lilypond:
set runtimepath+=/usr/share/vim/vim72/
[ << External programs ] | [Címoldal][Tartalom][Tárgymutató][ ? ] | [ Suggestions for writing files >> ] | ||
[ < Vim mode ] | [ Fel: Text editor support ] | [ Converting from other formats > ] |
Other editors
Other editors (both text and graphical) support LilyPond, but their special configuration files are not distributed with LilyPond. Consult their documentation for more information. Such editors are listed in Easier editing.
[ << External programs ] | [Címoldal][Tartalom][Tárgymutató][ ? ] | [ Suggestions for writing files >> ] | ||
[ < Vim mode ] | [ Fel: Text editor support ] | [ Converting from other formats > ] |