From 22dc721c3b1d7cf609fe66f075e159c372fca6c5 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Wed, 9 Oct 2019 11:56:34 -0500 Subject: [PATCH 1/8] Installed meghanada --- custom.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom.el b/custom.el index 9a6d243..e82d89c 100644 --- a/custom.el +++ b/custom.el @@ -55,7 +55,8 @@ '(inhibit-startup-screen t) '(package-selected-packages (quote - (elmacro + (meghanada + elmacro ace-window winum spaceline From f4917465f104e9339b18ff8b94f12fcf02ed8482 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Wed, 9 Oct 2019 12:09:01 -0500 Subject: [PATCH 2/8] Finally got around to disabling the menu bar --- custom.el | 1 + 1 file changed, 1 insertion(+) diff --git a/custom.el b/custom.el index 9a6d243..aab5339 100644 --- a/custom.el +++ b/custom.el @@ -53,6 +53,7 @@ " " filename)))) '(inhibit-startup-screen t) + '(menu-bar-mode nil) '(package-selected-packages (quote (elmacro From 16b8cd31da1b9d083eb9e35ef23dc67f7ba0addd Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Wed, 9 Oct 2019 17:50:51 +0000 Subject: [PATCH 3/8] Dracula updated again --- custom.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom.el b/custom.el index aab5339..9ed6b93 100644 --- a/custom.el +++ b/custom.el @@ -14,7 +14,8 @@ (quote (dracula))) '(custom-safe-themes (quote - ("1e922202769ed113de72a203c85726f98b5c86523c55629f95489c083fe2472a" + ("35b0b0e531731e270708ddb342dc2e576a31fb298dcbc56a206596a43afac54f" + "1e922202769ed113de72a203c85726f98b5c86523c55629f95489c083fe2472a" "274fa62b00d732d093fc3f120aca1b31a6bb484492f31081c1814a858e25c72e" default))) '(delete-by-moving-to-trash t) From 088bc9cd899ae9616f9a4dbd8d4a79c7bd233f50 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Wed, 9 Oct 2019 17:55:55 +0000 Subject: [PATCH 4/8] Installed autodisass-java-bytecode --- custom.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom.el b/custom.el index 2d8da16..f02a90b 100644 --- a/custom.el +++ b/custom.el @@ -57,7 +57,8 @@ '(menu-bar-mode nil) '(package-selected-packages (quote - (meghanada + (autodisass-java-bytecode + meghanada elmacro ace-window winum From 6cb07660051d2983a861e0cda0d8548412af5032 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Wed, 9 Oct 2019 21:31:23 +0000 Subject: [PATCH 5/8] Whittled down the meghanada config --- settings.org | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/settings.org b/settings.org index 64f7541..9e6c478 100644 --- a/settings.org +++ b/settings.org @@ -184,6 +184,32 @@ This handy function is a customized ripoff of custom-save-all #+END_SRC * Major modes ** Java +*** Meghanada +#+BEGIN_SRC emacs-lisp + (use-package autodisass-java-bytecode + :defer t) + + (use-package meghanada + :defer t + :init + (add-hook 'java-mode-hook + (lambda () + (meghanada-mode t) + (add-hook 'before-save-hook 'meghanada-code-beautify-before-save))) + + :config + (setq indent-tabs-mode nil) + (setq meghanada-server-remote-debug t) + (setq meghanada-javac-xlint "-Xlint:all,-processing") + :bind + (:map meghanada-mode-map + ("C-S-t" . meghanada-switch-testcase) + ("M-RET" . meghanada-local-variable) + ("M-r" . meghanada-reference) + ("M-t" . meghanada-typeinfo)) + :commands + (meghanada-mode)) +#+END_SRC ** JavaScript #+BEGIN_SRC emacs-lisp (use-package js2-mode From 0470175b6be382cf710667a6185a85dd17bff5b7 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Wed, 9 Oct 2019 17:11:53 -0500 Subject: [PATCH 6/8] Added meghanada-hydra --- settings.org | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/settings.org b/settings.org index 9e6c478..9a20a2a 100644 --- a/settings.org +++ b/settings.org @@ -201,12 +201,46 @@ This handy function is a customized ripoff of custom-save-all (setq indent-tabs-mode nil) (setq meghanada-server-remote-debug t) (setq meghanada-javac-xlint "-Xlint:all,-processing") + (defhydra hydra-meghanada (:hint nil :exit t) + " + ^Edit^ ^Tast or Task^ + ^^^^^^------------------------------------------------------- + _f_: meghanada-compile-file _m_: meghanada-restart + _c_: meghanada-compile-project _t_: meghanada-run-task + _o_: meghanada-optimize-import _j_: meghanada-run-junit-test-case + _s_: meghanada-switch-test-case _J_: meghanada-run-junit-class + _v_: meghanada-local-variable _R_: meghanada-run-junit-recent + _i_: meghanada-import-all _r_: meghanada-reference + _g_: magit-status _T_: meghanada-typeinfo + _q_: exit + " + ("f" meghanada-compile-file) + ("m" meghanada-restart) + + ("c" meghanada-compile-project) + ("o" meghanada-optimize-import) + ("s" meghanada-switch-test-case) + ("v" meghanada-local-variable) + ("i" meghanada-import-all) + + ("g" magit-status) + + ("t" meghanada-run-task) + ("T" meghanada-typeinfo) + ("j" meghanada-run-junit-test-case) + ("J" meghanada-run-junit-class) + ("R" meghanada-run-junit-recent) + ("r" meghanada-reference) + + ("q" exit) + ("z" nil "leave")) :bind (:map meghanada-mode-map ("C-S-t" . meghanada-switch-testcase) ("M-RET" . meghanada-local-variable) ("M-r" . meghanada-reference) - ("M-t" . meghanada-typeinfo)) + ("M-t" . meghanada-typeinfo) + ("C-z" . hydra-meghanada/body)) :commands (meghanada-mode)) #+END_SRC From 93f93ab0e30d61fc32f243a6f3b505c4402f4250 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Wed, 9 Oct 2019 17:38:08 -0500 Subject: [PATCH 7/8] Enabled flycheck mode --- settings.org | 1 + 1 file changed, 1 insertion(+) diff --git a/settings.org b/settings.org index 9a20a2a..9a1d621 100644 --- a/settings.org +++ b/settings.org @@ -195,6 +195,7 @@ This handy function is a customized ripoff of custom-save-all (add-hook 'java-mode-hook (lambda () (meghanada-mode t) + (flycheck-mode +1) (add-hook 'before-save-hook 'meghanada-code-beautify-before-save))) :config From a770d282964061631ed4a5ab471a20a4a899d34c Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Thu, 10 Oct 2019 02:04:10 -0500 Subject: [PATCH 8/8] Same file warnings are driving me crazy --- custom.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom.el b/custom.el index 973e98a..24ac41c 100644 --- a/custom.el +++ b/custom.el @@ -22,6 +22,8 @@ '(dired-listing-switches "-alh") '(elpy-eldoc-show-current-function nil) + '(find-file-suppress-same-file-warnings + t) '(hippie-expand-try-functions-list (quote (try-expand-dabbrev