Chore: Update copyright notice
Meta: v2.4.0-pre
Release: v2.3.0
Emacs major mode for editing files in the ChordPro format.
Clone this repository, then manually install chordpro-mode
with M-x package-install-file
.
Files with the .cho
extension will automatically be opened with chordpro-mode
.
chordpro-mode.el
adds functionality for normalizing (formatting)
chords correctly so that the ChordPro command line program can read
them. This means inserting brackets, trimming leading and trailing
whitespace, and capitalizing chords.
]
: Close and normalize chord at point.C-c i
: Insert a normalized chord at point.C-c w
: Kill the chord at point.C-c z
: Kill the next chord after point.C-c r
: Replace the chord at point with another normalized chord.C-c c
: Copy the chord at pointC-c x
: Copy the next chordC-M-n
: Move chord at point forward PREFIX chars.C-M-p
: Move chord at point backward PREFIX charsC-c m
: Insert a comment directiveC-c e
: Insert an enviroment directive, e.g. bridge
,
chorus
, grid
, tab
, or verse
. Wraps region when active.C-c t
: Insert a title directiveC-c s
: Insert a subtitle directiveC-c C-c
: Export ChordPro file to PDFCertain websites, such as Ultimate
Guitar provide tabs with lyrics and
chords in a format that the chordpro
program can convert into
ChordPro files:
D G D
Swing low, sweet chariot,
A7
Comin' for to carry me home.
D7 G D
Swing low, sweet chariot,
A7 D
Comin' for to carry me home.
To replace the text above to ChordPro format, select the region and
run chordpro-a2crd
with a prefix argument C-u
, which deletes empty
lines in the region before attempting conversion:
Swing lo[D]w, sweet [G]chariot[D],
Comin' for to carry me [A7]home.
Swing l[D7]ow, sweet [G]chariot[D],
Comin' for to c[A7]arry me h[D]ome.
You can then edit this buffer and save it to a .cho
file before
exporting it to PDF.
If the chordpro
command is in your $PATH
(installation
instructions),
M-x chordpro-export
will export the current ChordPro buffer to PDF.
The ChordPro buffer must be visiting a file on disk in order for this
function to work.
This hook runs chordpro-export
each time you save the buffer:
(add-hook 'after-save-hook #'chordpro-export nil t)
You can get a live preview of the exported PDF if you run an PDF viewer like Zathura which automatically re-renders the document when the underlying file changes:
chordpro-environment-directives
You can change if you want to insert environment directives
besides bridge
, chorus
, grid
, tab
, or verse
.
chordpro-mode.el
chordpro
and for feedback on chordpro-mode.el
Nothing yet...
chordpro-insert-environment-directive
wraps the region when active.chordpro-insert-environment-directive
command and
chordpro-environment-directives
customization optionchordpro-insert-chorus
(superceded by
chordpro-insert-environment-directive
)chordpro-a2crd
functionchordpro-close-chord
function for easy editingchordpro-export
to C-c C-c
chordpro-export
chordpro-transpose-*
to chordpro-move-*
for claritychordpro-export
function.cho
to auto-mode-alist