mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-21 13:53:38 -05:00
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.
This commit is contained in:
committed by
Henrik Lissner
parent
5c52ba35e7
commit
137fca35d8
@@ -29,10 +29,10 @@
|
||||
:desc "run (gfortran)" "r" #'+fortran/gfortran-run)
|
||||
|
||||
(easy-menu-define f90-menu f90-mode-map "Simpler menu for F90 mode."
|
||||
'("F90"
|
||||
["Compile" +fortran/fpm-build :active t :help "Compile with FPM"]
|
||||
["Run" +fortran/fpm-run :active t :help "Run the Executable"]
|
||||
["Test" +fortran/fpm-test :active t :help "Run the Unit Tests"])))
|
||||
`("F90"
|
||||
["Compile" +fortran/build :active t :help "Compile the Project"]
|
||||
["Run" +fortran/run :active t :help "Run the Executable"]
|
||||
["Test" +fortran/fpm-test :active (+fortran--fpm-toml) :help "Run the Unit Tests"])))
|
||||
|
||||
(use-package! fortran
|
||||
;; The `.for' extension is automatically recognized by Emacs and invokes
|
||||
|
Reference in New Issue
Block a user