doomemacs/modules/lang/fortran
Colin Woodbury 137fca35d8 feat(fortran): generalised build options for menu
Specifically for when compilation is done through the modeline's Easy
Menu, the commands will use `fpm` or `gfortran` dynamically depending on
whether the current file is present in a project or not.
2022-03-21 04:00:10 +01:00
..
autoload.el feat(fortran): generalised build options for menu 2022-03-21 04:00:10 +01:00
config.el feat(fortran): generalised build options for menu 2022-03-21 04:00:10 +01:00
doctor.el module: add :lang fortran 2021-12-15 15:16:22 +01:00
README.org docs(fortran): reference the newer fortls LSP 2022-03-19 16:36:44 +01:00

lang/fortran

Description

This module enables a complete, modern development environment for the Fortran language. Initially released in 1956 (a year before Lisp 1.0), Fortran is the original high-performance computation language and is still widely used in science and academia. Popular versions of the language include Fortran 77 and Fortran 90, with further extensions in the 1995 and 2008 varieties. Today, Fortran has joined the modern age with its own package manager, package registry, and Discourse community.

In particular, this module features:

  • Support for all major Fortran varieties.
  • Auto-formatting via fprettier.
  • Integration with the fpm package manager.
  • LSP support via fortls.

After a career of writing Fortran on Mainframes and Windows machines, my now-retired Dad is switching to Linux. Imagine my surprise when I learned that off-the-shelf setups for Fortran on Linux basically don't exist! Well, until now… Cheers Dad, hope this helps.

Maintainers

Module Flags

  • +lsp Activate fortls for Fortran projects.

Plugins

Prerequisites

For minimum functionality, this module requires gfortran. For most project management tasks you will also need fpm, the Fortran Package Manager.

Arch Linux

gfortran is available from the official repositories:

sudo pacman -S gcc-fortran

Whereas fpm and fortls are available from the AUR and thus must be installed with an AUR-compatible tool like Aura:

sudo aura -A fortran-fpm fortls

Features

Configuration

Troubleshooting