add: golang lsp to .emacs

This commit is contained in:
2025-09-04 14:20:09 +02:00
parent 575d067cb1
commit 073ced100b
2 changed files with 8 additions and 2 deletions

8
.emacs
View File

@@ -56,6 +56,10 @@
(unless (package-installed-p 'lsp-mode)
(package-install 'lsp-mode))
(unless (package-installed-p 'go-mode)
(package-refresh-contents)
(package-install 'go-mode))
(use-package lsp-mode
:init
:config
@@ -76,6 +80,7 @@
:hook (;; replace XXX-mode with concrete major-mode(e. g. python-mode)
(c-mode . lsp)
(c++-mode . lsp)
(go-mode . lsp)
(haskell-mode . lsp)
(python-mode . lsp))
:commands lsp)
@@ -192,8 +197,7 @@
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(inhibit-startup-screen t)
'(package-selected-packages
'(lsp-haskell benchmark-init company simpleclip rust-mode org-cliplink neotree magit gruber-darker-theme go-mode evil dash-functional all-the-icons)))
'(package-selected-packages nil))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.

View File

@@ -18,3 +18,5 @@
helper = !/usr/bin/gh auth git-credential
[credential]
helper = store
[core]
editor = emacs