From: João Távora Date: Wed, 9 May 2018 22:24:15 +0000 (+0100) Subject: Add minimal headers, commentary and autoloads X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~601 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d2fa8fea9aa71f9ef553b2a67946a33f208e5cb5;p=emacs.git Add minimal headers, commentary and autoloads --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 4739cea72f1..eba0e84f267 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/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 :): " 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))