1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-23 20:20:53 -05:00

Fix java defs

This commit is contained in:
Jack Foltz 2019-05-03 09:02:33 -04:00
parent 03f4e6fb07
commit 7c48fdd049
Signed by: foltik
GPG Key ID: D1F0331758D1F29A

View File

@ -832,6 +832,20 @@ And [[https://www.emacswiki.org/emacs/ParEdit][ParEdit]] handles the rest.
:diminish
:commands enable-paredit-mode)
#+END_SRC
**** Lispyville
And now Lispyville handles the rest.
#+BEGIN_SRC emacs-lisp
(use-package lispyville
:commands lispyville-mode
:config
(lispyville-set-key-theme
'(operators
c-w
slurp/barf-cp
commentary
(escape insert)
(additional-movement normal visual motion))))
#+END_SRC
**** Evil-Cleverparens
[[https://github.com/luxbock/evil-cleverparens][Evil-Cleverparens]] adds additional features to Evil all about
working with sexps, including keeping parens balanced when
@ -841,33 +855,32 @@ using commands like =dd=.
:diminish
:commands evil-cleverparens-mode)
#+END_SRC
**** Activation
Add a hook to enable paren helper modes for any prog-mode buffer
#+BEGIN_SRC emacs-lisp
(defun jf-paren-mode ()
"Pick a suitable parenthesis mode for the current major mode."
(electric-pair-mode)
(if (member major-mode '(emacs-lisp-mode
lisp-mode
lisp-interaction-mode
scheme-mode))
(lispyville-mode)
(smartparens-mode)))
(add-hook 'prog-mode-hook #'jf-paren-mode)
#+END_SRC
**** Helpers
Helpers for wrangling sexps
#+BEGIN_SRC emacs-lisp
(jf-kbd-defmacro jf-wrap-fn-inline
"ESC i{ DEL RET TAB ESC jI} SPC ESC k^")
"ESC i C-q { RET TAB ESC jI} SPC ESC k^")
(jf-kbd-defmacro jf-wrap-fn-line
"ESC kA SPC { DEL ESC jjI} SPC ESC k^")
"ESC kA SPC C-q { ESC jjI} SPC ESC k^")
(jf-kbd-defmacro jf-wrap-fn-sexp
"ESC i{ DEL RET TAB ESC )i} ESC i RET ESC k^")
#+END_SRC
**** Activation
Pick a suitable parenthesis editing mode for the
current major mode when entering any prog-mode derivative.
#+BEGIN_SRC emacs-lisp
(defun jf-paren-mode ()
(electric-pair-mode)
(lispyville-mode))
;; (if (member major-mode '(emacs-lisp-mode
;; lisp-mode
;; lisp-interaction-mode
;; scheme-mode))
;; (enable-paredit-mode)
;; (smartparens-mode)))
(add-hook 'prog-mode-hook #'jf-paren-mode)
"ESC i C-q { RET TAB ESC )i} ESC i RET ESC k^")
#+END_SRC
*** Whitespace
**** ws-butler
@ -920,7 +933,6 @@ pretty-mode left off.
(add-hook 'python-mode-hook #'prettify-symbols-mode)
(add-hook 'python-mode-hook #'jf-prettify-python)
#+END_SRC
** Checkers
*** Flycheck
Flycheck highlights syntax errors in a few languages.
@ -1235,6 +1247,7 @@ company-irony for company integration
(use-package elixir-mode
:mode "\\.exs?\\'"
:hook (elixir-mode . lsp))
#+END_SRC
*** Java
**** Eclim
Secretly actually use eclipse in the background in the form of eclimd
@ -1256,3 +1269,4 @@ The std:: java build system
#+BEGIN_SRC emacs-lisp
(use-package gradle-mode
:commands gradle-mode)
#+END_SRC