Skip to content

Commit b615126

Browse files
authored
Merge pull request #129 from ssnnoo/master
mention eglot for emacs support
2 parents 34f5bbf + 6053c22 commit b615126

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/editor_integration.rst

+18
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,31 @@ to set ``fortls`` for Fortran files
159159
`EMACS <https://www.gnu.org/software/emacs/>`__
160160
-----------------------------------------------
161161

162+
`LSP Mode <https://emacs-lsp.github.io/lsp-mode>`__
163+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
164+
162165
Install the `lsp-mode`_ plugin. This should then allow for the variables
163166
`lsp-clients-fortls-args`_ and `lsp-clients-fortls-executable`_ to be defined in the ``~/.emacs`` configuration file.
164167

165168
.. _lsp-mode: https://emacs-lsp.github.io/lsp-mode/page/installation
166169
.. _lsp-clients-fortls-args: https://emacs-lsp.github.io/lsp-mode/page/lsp-fortran/#lsp-clients-fortls-args
167170
.. _lsp-clients-fortls-executable: https://emacs-lsp.github.io/lsp-mode/page/lsp-fortran/#lsp-clients-fortls-executable
168171

172+
173+
`Eglot <https://github.com/joaotavora/eglot>`__
174+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
175+
176+
Install the `eglot`_ package which supports fortls out of the box.
177+
This can be done in emacs version > 26.1 via ``M-x package-install RET eglot RET``.
178+
Arguments to ``fortls`` can be provided in the form
179+
180+
.. code-block:: elisp
181+
182+
(add-to-list 'eglot-server-programs '(f90-mode . ("fortls" "--notify_init" "--nthreads=4")))
183+
184+
.. _eglot: https://github.com/joaotavora/eglot
185+
186+
169187
Visual Studio 2017
170188
------------------
171189

0 commit comments

Comments
 (0)