add: golang lsp to .emacs
This commit is contained in:
8
.emacs
8
.emacs
@@ -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.
|
||||
|
||||
@@ -18,3 +18,5 @@
|
||||
helper = !/usr/bin/gh auth git-credential
|
||||
[credential]
|
||||
helper = store
|
||||
[core]
|
||||
editor = emacs
|
||||
|
||||
Reference in New Issue
Block a user