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))
|
(sleep-for 1))
|
||||||
(compile "./a.out"))
|
(compile "./a.out"))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;;; FPM
|
;;; FPM
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,11 @@
|
||||||
:desc "fpm build" "b" #'+fortran/fpm-build
|
:desc "fpm build" "b" #'+fortran/fpm-build
|
||||||
:desc "fpm run" "r" #'+fortran/fpm-run
|
:desc "fpm run" "r" #'+fortran/fpm-run
|
||||||
:desc "fpm test" "t" #'+fortran/fpm-test)
|
:desc "fpm test" "t" #'+fortran/fpm-test)
|
||||||
:desc "compile (gfortran)" "c" #'+fortran/gfortran-compile
|
(:prefix ("g" . "gfortran")
|
||||||
:desc "run (gfortran)" "r" #'+fortran/gfortran-run)
|
: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."
|
(easy-menu-define f90-menu f90-mode-map "Simpler menu for F90 mode."
|
||||||
`("F90"
|
`("F90"
|
||||||
|
@ -59,8 +62,9 @@
|
||||||
;; --- Keybindings --- ;;
|
;; --- Keybindings --- ;;
|
||||||
(map! :map fortran-mode-map
|
(map! :map fortran-mode-map
|
||||||
:localleader
|
:localleader
|
||||||
:desc "compile (gfortran)" "c" #'+fortran/gfortran-compile
|
(:prefix ("g" . "gfortran")
|
||||||
:desc "run (gfortran)" "r" #'+fortran/gfortran-run)
|
: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."
|
(easy-menu-define fortran-menu fortran-mode-map "Simpler menu for Fortran mode."
|
||||||
'("Fortran"
|
'("Fortran"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue