feat(fortran): improve keymap layout
This commit is contained in:
parent
137fca35d8
commit
5c32360361
2 changed files with 12 additions and 7 deletions
|
@ -55,6 +55,7 @@ then building will occur with fpm. Otherwise it will default to gfortran."
|
|||
(sleep-for 1))
|
||||
(compile "./a.out"))
|
||||
|
||||
|
||||
;;
|
||||
;;; FPM
|
||||
|
||||
|
|
|
@ -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"])))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue