diff --git a/modules/lang/fortran/autoload.el b/modules/lang/fortran/autoload.el index 04be5aea2..38fa633e2 100644 --- a/modules/lang/fortran/autoload.el +++ b/modules/lang/fortran/autoload.el @@ -55,6 +55,7 @@ then building will occur with fpm. Otherwise it will default to gfortran." (sleep-for 1)) (compile "./a.out")) + ;; ;;; FPM diff --git a/modules/lang/fortran/config.el b/modules/lang/fortran/config.el index 42bd6c3cc..d6dd9a556 100644 --- a/modules/lang/fortran/config.el +++ b/modules/lang/fortran/config.el @@ -25,8 +25,11 @@ :desc "fpm build" "b" #'+fortran/fpm-build :desc "fpm run" "r" #'+fortran/fpm-run :desc "fpm test" "t" #'+fortran/fpm-test) - :desc "compile (gfortran)" "c" #'+fortran/gfortran-compile - :desc "run (gfortran)" "r" #'+fortran/gfortran-run) + (:prefix ("g" . "gfortran") + :desc "compile" "c" #'+fortran/gfortran-compile + :desc "run" "r" #'+fortran/gfortran-run) + :desc "build" "b" #'+fortran/build + :desc "run" "r" #'+fortran/run) (easy-menu-define f90-menu f90-mode-map "Simpler menu for F90 mode." `("F90" @@ -59,10 +62,11 @@ ;; --- Keybindings --- ;; (map! :map fortran-mode-map :localleader - :desc "compile (gfortran)" "c" #'+fortran/gfortran-compile - :desc "run (gfortran)" "r" #'+fortran/gfortran-run) + (:prefix ("g" . "gfortran") + :desc "compile" "c" #'+fortran/gfortran-compile + :desc "run" "r" #'+fortran/gfortran-run)) (easy-menu-define fortran-menu fortran-mode-map "Simpler menu for Fortran mode." - '("Fortran" - ["Compile" +fortran/gfortran-compile :active t :help "Compile with gfortran"] - ["Run" +fortran/gfortran-run :active t :help "Run the Executable"]))) + '("Fortran" + ["Compile" +fortran/gfortran-compile :active t :help "Compile with gfortran"] + ["Run" +fortran/gfortran-run :active t :help "Run the Executable"])))