Add some snippets for Emacs yasnippets.
parent
8fef722919
commit
e53e3b3140
|
@ -18,6 +18,10 @@
|
||||||
;;; work you'll need the auto-complete package available from MELPA, please
|
;;; work you'll need the auto-complete package available from MELPA, please
|
||||||
;;; check: https://github.com/auto-complete/auto-complete.
|
;;; 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:
|
;;; Code:
|
||||||
|
|
||||||
(require 'comint)
|
(require 'comint)
|
||||||
|
|
|
@ -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]
|
|
@ -0,0 +1,5 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: section header
|
||||||
|
# key: [
|
||||||
|
# --
|
||||||
|
[${1:name}] ${2:regex}
|
Loading…
Reference in New Issue