doomemacs/modules/lang/faust/config.el

26 lines
884 B
EmacsLisp
Raw Normal View History

2019-10-14 01:23:54 +02:00
;;; lang/faust/config.el -*- lexical-binding: t; -*-
(use-package! faustine
:mode ("\\.dsp\\'" . faustine-mode)
:config
2019-10-27 14:23:50 +01:00
(set-company-backend! '(faust-mode faustine-mode) '(company-dabbrev-code +faust-company-backend company-yasnippet))
2019-10-14 01:23:54 +02:00
2019-10-14 00:44:39 -04:00
;; HACK Both `faust-mode' and `faustine-mode' are hardcoded to use
;; auto-complete. This silences the obnoxious 'You really should install and
;; use auto-complete' warnings when starting them.
(defvar ac-modes nil)
(defvar ac-sources nil)
2019-10-14 01:23:54 +02:00
(map! :localleader
:map faustine-mode-map
2019-10-14 00:44:39 -04:00
"RET" #'faustine-mdoc
2019-10-14 01:23:54 +02:00
"b" #'faustine-build
2019-10-14 00:44:39 -04:00
"B" #'faustine-build-all
2019-10-14 01:23:54 +02:00
"c" #'faustine-syntax-check
"d" #'faustine-diagram
2019-10-14 00:44:39 -04:00
"D" #'faustine-diagram-all
2019-10-14 01:23:54 +02:00
"h" #'faustine-online-doc
"o" #'faustine-toggle-output-buffer
"s" #'faustine-source-code
2019-10-14 00:44:39 -04:00
"r" #'faustine-run))