From 6053c2289fab890d58db133d03abc37650a56a95 Mon Sep 17 00:00:00 2001 From: ssnnoo <43703153+ssnnoo@users.noreply.github.com> Date: Tue, 24 May 2022 21:42:47 +0100 Subject: [PATCH] mention eglot for emacs support --- docs/editor_integration.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/editor_integration.rst b/docs/editor_integration.rst index c9c19920..ccf6012c 100644 --- a/docs/editor_integration.rst +++ b/docs/editor_integration.rst @@ -159,6 +159,9 @@ to set ``fortls`` for Fortran files `EMACS `__ ----------------------------------------------- +`LSP Mode `__ +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + Install the `lsp-mode`_ plugin. This should then allow for the variables `lsp-clients-fortls-args`_ and `lsp-clients-fortls-executable`_ to be defined in the ``~/.emacs`` configuration file. @@ -166,6 +169,21 @@ Install the `lsp-mode`_ plugin. This should then allow for the variables .. _lsp-clients-fortls-args: https://emacs-lsp.github.io/lsp-mode/page/lsp-fortran/#lsp-clients-fortls-args .. _lsp-clients-fortls-executable: https://emacs-lsp.github.io/lsp-mode/page/lsp-fortran/#lsp-clients-fortls-executable + +`Eglot `__ +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Install the `eglot`_ package which supports fortls out of the box. +This can be done in emacs version > 26.1 via ``M-x package-install RET eglot RET``. +Arguments to ``fortls`` can be provided in the form + +.. code-block:: elisp + + (add-to-list 'eglot-server-programs '(f90-mode . ("fortls" "--notify_init" "--nthreads=4"))) + +.. _eglot: https://github.com/joaotavora/eglot + + Visual Studio 2017 ------------------