1
0
Fork 0

fix(emacs): define eglot keybindings

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-01-20 11:04:59 -05:00
parent 0c5e522114
commit d88292389b
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -6,7 +6,6 @@
;;; Code:
(require 'lsp-mode)
(require 'lsp-java)
(require 'git-gutter)
(require 'elfeed)
(require 'neotree)
@ -72,6 +71,15 @@
(setq read-process-output-max (* 4 1024 1024))
;; Eglot
(with-eval-after-load 'eglot-java
(define-key eglot-java-mode-map (kbd "C-c l n") #'eglot-java-file-new)
(define-key eglot-java-mode-map (kbd "C-c l x") #'eglot-java-run-main)
(define-key eglot-java-mode-map (kbd "C-c l t") #'eglot-java-run-test)
(define-key eglot-java-mode-map (kbd "C-c l N") #'eglot-java-project-new)
(define-key eglot-java-mode-map (kbd "C-c l T") #'eglot-java-project-build-task)
(define-key eglot-java-mode-map (kbd "C-c l R") #'eglot-java-project-build-refresh)
(setq c-basic-offset 2))
;; Git Gutter
(global-git-gutter-mode +1)