branch: externals/elpa
commit 3dcbc30ee2e56e1fdfb8de653de124f096f55f97
Author: João Távora <joaotav...@gmail.com>
Commit: João Távora <joaotav...@gmail.com>

    Add minimal headers, commentary and autoloads
---
 eglot.el | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/eglot.el b/eglot.el
index 4739cea..eba0e84 100644
--- a/eglot.el
+++ b/eglot.el
@@ -2,8 +2,11 @@
 
 ;; 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
@@ -20,7 +23,8 @@
 
 ;;; Commentary:
 
-;;
+;; M-x eglot in some file under some .git controlled dir should get
+;; you started, but see README.md.
 
 ;;; Code:
 
@@ -285,6 +289,7 @@ Enter program to execute (or <host>:<port>): "
          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
@@ -1465,8 +1470,10 @@ Proceed? "
       (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))

Reply via email to