mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-23 19:40:24 +10:00
Moving to Doom Emacs!
This commit is contained in:
13
.emacs.d/modules/lang/faust/autoload.el
Normal file
13
.emacs.d/modules/lang/faust/autoload.el
Normal file
@@ -0,0 +1,13 @@
|
||||
;;; lang/faust/autoload.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;;###autoload
|
||||
(defun +faust-company-backend (command &optional arg &rest ignored)
|
||||
"`company-mode' completion back-end for `faust-mode'."
|
||||
(interactive (list 'interactive))
|
||||
(cl-case command
|
||||
(interactive (company-begin-backend '+faust-company-backend))
|
||||
(prefix (and (derived-mode-p 'faust-mode)
|
||||
(not (company-in-string-or-comment))
|
||||
(or (company-grab-symbol-cons "\\." 1) 'stop)))
|
||||
(candidates (cl-remove-if-not (lambda (c) (string-prefix-p arg c))
|
||||
faust-keywords-all))))
|
||||
Reference in New Issue
Block a user