feat(emacs): java

This commit is contained in:
Pavel Korytov 2021-02-11 21:03:44 +03:00
parent e7b0bbc58f
commit 89c54713da
3 changed files with 49 additions and 9 deletions

View file

@ -11,7 +11,7 @@
'(js-indent-level 2)
'(notmuch-search-oldest-first nil)
'(org-agenda-files
'("~/Documents/org-mode/ETU/r&d.org" "~/Documents/org-mode/Personal/misc.org" "~/Documents/org-mode/Job/dig-traject.org" "~/Documents/org-mode/Personal/look-forward.org" "~/Documents/org-mode/ETU/sem-9.org"))
'("~/Documents/org-mode/ETU/sem-10.org" "~/Documents/org-mode/ETU/r&d.org" "~/Documents/org-mode/Personal/misc.org" "~/Documents/org-mode/Job/dig-traject.org" "~/Documents/org-mode/Personal/look-forward.org" "~/Documents/org-mode/ETU/sem-9.org"))
'(send-mail-function 'smtpmail-send-it)
'(sgml-basic-offset 2)
'(smtpmail-smtp-server "smtp.gmail.com")

View file

@ -1163,7 +1163,20 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
(use-package ligature
:straight (:host github :repo "mickeynp/ligature.el")
:config
(ligature-set-ligatures 'prog-mode
(ligature-set-ligatures '(
typescript-mode
js2-mode
vue-mode
svelte-mode
scss-mode
php-mode
python-mode
LaTeX-mode
markdown-mode
clojure-mode
go-mode
sh-mode
haskell-mode)
'("--" "---" "==" "===" "!=" "!==" "=!=" "=:=" "=/=" "<="
">=" "&&" "&&&" "&=" "++" "+++" "***" ";;" "!!" "??"
"?:" "?." "?=" "<:" ":<" ":>" ">:" "<>" "<<<" ">>>"
@ -1275,7 +1288,8 @@ pip install qtconsole markdown qrcode[pil] PyQt5 PyQtWebEngine
(python-mode . lsp)
(json-mode . lsp)
(haskell-mode . lsp)
(haskell-literate-mode . lsp))
(haskell-literate-mode . lsp)
(java-mode . lsp))
:commands lsp
:config
(setq lsp-idle-delay 1)
@ -1284,8 +1298,7 @@ pip install qtconsole markdown qrcode[pil] PyQt5 PyQtWebEngine
(setq lsp-signature-render-documentation nil)
; (lsp-headerline-breadcrumb-mode nil)
(setq lsp-headerline-breadcrumb-enable nil)
(add-to-list 'lsp-language-id-configuration '(svelte-mode . "svelte"))
)
(add-to-list 'lsp-language-id-configuration '(svelte-mode . "svelte")))
(use-package lsp-ui
:straight t
@ -1680,6 +1693,14 @@ pip install qtconsole markdown qrcode[pil] PyQt5 PyQtWebEngine
(push 'ejc-company-backend company-backends)
(setq ejc-complete-on-dot t))
#+end_src
** Java
#+begin_src emacs-lisp
(use-package lsp-java
:straight t
:after (lsp)
:config
(setq lsp-java-jdt-download-url "https://download.eclipse.org/jdtls/milestones/0.57.0/jdt-language-server-0.57.0-202006172108.tar.gz"))
#+end_src
** Clojure
#+begin_src emacs-lisp
(use-package clojure-mode

View file

@ -934,7 +934,20 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
(use-package ligature
:straight (:host github :repo "mickeynp/ligature.el")
:config
(ligature-set-ligatures 'prog-mode
(ligature-set-ligatures '(
typescript-mode
js2-mode
vue-mode
svelte-mode
scss-mode
php-mode
python-mode
LaTeX-mode
markdown-mode
clojure-mode
go-mode
sh-mode
haskell-mode)
'("--" "---" "==" "===" "!=" "!==" "=!=" "=:=" "=/=" "<="
">=" "&&" "&&&" "&=" "++" "+++" "***" ";;" "!!" "??"
"?:" "?." "?=" "<:" ":<" ":>" ">:" "<>" "<<<" ">>>"
@ -1000,7 +1013,8 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
(python-mode . lsp)
(json-mode . lsp)
(haskell-mode . lsp)
(haskell-literate-mode . lsp))
(haskell-literate-mode . lsp)
(java-mode . lsp))
:commands lsp
:config
(setq lsp-idle-delay 1)
@ -1009,8 +1023,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
(setq lsp-signature-render-documentation nil)
; (lsp-headerline-breadcrumb-mode nil)
(setq lsp-headerline-breadcrumb-enable nil)
(add-to-list 'lsp-language-id-configuration '(svelte-mode . "svelte"))
)
(add-to-list 'lsp-language-id-configuration '(svelte-mode . "svelte")))
(use-package lsp-ui
:straight t
@ -1257,6 +1270,12 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
(add-hook 'python-mode-hook #'smartparens-mode)
(use-package lsp-java
:straight t
:init
(setq lsp-java-jdt-download-url "https://download.eclipse.org/jdtls/milestones/0.57.0/jdt-language-server-0.57.0-202006172108.tar.gz")
:after (lsp))
(use-package clojure-mode
:straight t
:mode "\\.clj[sc]?\\'"