From 2f0a81dcb3cbf1179677c4bdb9cc392824931620 Mon Sep 17 00:00:00 2001 From: Jack Foltz Date: Fri, 3 May 2019 09:11:41 -0400 Subject: [PATCH] Add "b" prefix for building/running in major-mode-map --- lain/.emacs.d/config.org | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/lain/.emacs.d/config.org b/lain/.emacs.d/config.org index 4059c60..c7a2499 100644 --- a/lain/.emacs.d/config.org +++ b/lain/.emacs.d/config.org @@ -1211,9 +1211,9 @@ cdlatex adds better TeX-specific template expansions and other niceties. :general (jf-major-def :keymaps 'rust-mode-map - "b" #'cargo-process-build - "r" #'cargo-process-run - "t" #'cargo-process-test)) + "b b" #'cargo-process-build + "b r" #'cargo-process-run + "b t" #'cargo-process-test)) #+END_SRC *** C/C++ **** Irony @@ -1268,5 +1268,13 @@ for all of the IDE like features. The std:: java build system #+BEGIN_SRC emacs-lisp (use-package gradle-mode - :commands gradle-mode) + :commands gradle-mode + :preface + (defun jf-gradle-run-main () + (gradle-execute "run")) + :general + (jf-major-def + :keymaps 'gradle-mode-map + "b b" #'gradle-build + "b r" #'jf-gradle-run-main)) #+END_SRC