summaryrefslogtreecommitdiff
path: root/emacs/custom/my-prog.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/custom/my-prog.el')
-rw-r--r--emacs/custom/my-prog.el45
1 files changed, 0 insertions, 45 deletions
diff --git a/emacs/custom/my-prog.el b/emacs/custom/my-prog.el
index 578207c..d11eebd 100644
--- a/emacs/custom/my-prog.el
+++ b/emacs/custom/my-prog.el
@@ -61,26 +61,6 @@
(add-hook 'makefile-mode-hook 'my/makefile-mode-hook)
-(require 'go-mode)
-(require 'gotest)
-
-(defun my/go-mode-hook ()
- "Hooks for `go-mode'."
- (setq tab-width 4)
- (setq go-test-verbose t)
-
- (set (make-local-variable 'compile-command)
- "go build -v && go test -v -cover")
- (define-key go-mode-map (kbd "C-c C-r") 'compile)
- (define-key go-mode-map (kbd "C-c C-R") 'recompile)
- (define-key go-mode-map (kbd "C-c C-n") 'go-run)
- (define-key go-mode-map (kbd "C-c C-c") 'go-coverage)
- (define-key go-mode-map (kbd "C-c .") 'go-test-current-test)
- (define-key go-mode-map (kbd "C-c C-f") 'go-test-current-file)
- (define-key go-mode-map (kbd "C-c C-p") 'go-test-current-project))
-
-(add-hook 'go-mode-hook 'my/go-mode-hook)
-
(defun my/elisp-mode-hook ()
"Hooks for `elisp-mode'."
(define-key emacs-lisp-mode-map (kbd "C-c C-e") 'eval-buffer)
@@ -92,31 +72,6 @@
(dolist (hook '(prog-mode-hook conf-mode-hook))
(add-hook hook 'turn-on-eldoc-mode))
-(require 'eglot)
-;; List of settings for gopls:
-;; https://github.com/golang/tools/blob/master/gopls/doc/settings.md
-(setq eglot-workspace-configuration
- '((:gopls .
- ((staticcheck . t)
- (experimentalWorkspaceModule . t)
- (matcher . "CaseSensitive")
- (usePlaceholders . t)))))
-
-(defun my/eglot-install-save-hook ()
- "Install the local hooks that are executed before saving a buffer."
- ;; the last thing we do is to format the buffer
- (add-hook 'before-save-hook #'eglot-format-buffer 100 t))
-
-;; ensure we load eglot for some specific modes
-(dolist (hook '(go-mode-hook nix-mode-hook rust-mode-hook))
- (add-hook hook 'eglot-ensure)
- (add-hook hook #'my/eglot-install-save-hook))
-
-(require 'rustic)
-(setq rustic-lsp-server 'rust-analyzer
- rustic-lsp-client 'eglot
- rustic-format-on-save t)
-
(provide 'my-prog)
;;; my-prog.el ends here