Add some snippets for Emacs yasnippets.

master
Albert Graef 2018-11-13 08:31:41 +01:00
parent 8fef722919
commit e53e3b3140
3 changed files with 36 additions and 0 deletions

View File

@ -18,6 +18,10 @@
;;; work you'll need the auto-complete package available from MELPA, please
;;; check: https://github.com/auto-complete/auto-complete.
;;; In the midizap-mode subdirectory you'll find some snippets to be used with
;;; yasnippet (https://github.com/joaotavora/yasnippet); to use these, copy
;;; the entire folder to your ~/.emacs.d/snippets directory.
;;; Code:
(require 'comint)

27
midizap-mode/midizaprc Normal file
View File

@ -0,0 +1,27 @@
# -*- mode: snippet -*-
# name: midizaprc template
# key: #
# --
# midizap configuration template for Emacs (requires yasnippet)
# Jack client name and ports/connections
# NOTE: Remove the JACK_PORTS and JACK_OUT lines if you don't need MIDI
# output. For bidirectional setups, use JACK_PORTS 2 and add JACK_IN2,
# JACK_OUT2 and a [MIDI2] section for the feedback connection.
JACK_NAME "${1:client-name}"
JACK_PORTS 1
JACK_IN ${2:controller-regex}
JACK_OUT ${3:application-regex}
# common debugging options (uncomment as needed)
#DEBUG_REGEX
#DEBUG_KEYS
#DEBUG_MIDI
# translations go here
[MIDI]

5
midizap-mode/section Normal file
View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: section header
# key: [
# --
[${1:name}] ${2:regex}