;; Copyright (C) 2017 João Távora
+;; Version: 0.1
;; Author: João Távora
-;; Keywords: extensions
+;; Url: https://github.com/joaotavora/eglot
+;; Keywords: convenience, languages
+;; Package-Requires: ((emacs "26.1"))
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;;; Commentary:
-;;
+;; M-x eglot in some file under some .git controlled dir should get
+;; you started, but see README.md.
;;; Code:
guessed-command))
t)))
+;;;###autoload
(defun eglot (managed-major-mode command &optional interactive)
"Start a Language Server Protocol server.
Server is started with COMMAND and manages buffers of
(pcase-let ((`(,_id ,what ,done ,_detail) (eglot--spinner proc)))
(and (equal "Indexing" what) done))))
+;;;###autoload
(add-hook 'rust-mode-hook 'eglot--setup-rls-idiosyncrasies)
+;;;###autoload
(defun eglot--setup-rls-idiosyncrasies ()
"RLS needs special treatment..."
(add-hook 'eglot--ready-predicates 'eglot--rls-probably-ready-for-p t t))