add: golang lsp to .emacs
This commit is contained in:
8
.emacs
8
.emacs
@@ -56,6 +56,10 @@
|
|||||||
(unless (package-installed-p 'lsp-mode)
|
(unless (package-installed-p 'lsp-mode)
|
||||||
(package-install 'lsp-mode))
|
(package-install 'lsp-mode))
|
||||||
|
|
||||||
|
(unless (package-installed-p 'go-mode)
|
||||||
|
(package-refresh-contents)
|
||||||
|
(package-install 'go-mode))
|
||||||
|
|
||||||
(use-package lsp-mode
|
(use-package lsp-mode
|
||||||
:init
|
:init
|
||||||
:config
|
:config
|
||||||
@@ -76,6 +80,7 @@
|
|||||||
:hook (;; replace XXX-mode with concrete major-mode(e. g. python-mode)
|
:hook (;; replace XXX-mode with concrete major-mode(e. g. python-mode)
|
||||||
(c-mode . lsp)
|
(c-mode . lsp)
|
||||||
(c++-mode . lsp)
|
(c++-mode . lsp)
|
||||||
|
(go-mode . lsp)
|
||||||
(haskell-mode . lsp)
|
(haskell-mode . lsp)
|
||||||
(python-mode . lsp))
|
(python-mode . lsp))
|
||||||
:commands lsp)
|
:commands lsp)
|
||||||
@@ -192,8 +197,7 @@
|
|||||||
;; Your init file should contain only one such instance.
|
;; Your init file should contain only one such instance.
|
||||||
;; If there is more than one, they won't work right.
|
;; If there is more than one, they won't work right.
|
||||||
'(inhibit-startup-screen t)
|
'(inhibit-startup-screen t)
|
||||||
'(package-selected-packages
|
'(package-selected-packages nil))
|
||||||
'(lsp-haskell benchmark-init company simpleclip rust-mode org-cliplink neotree magit gruber-darker-theme go-mode evil dash-functional all-the-icons)))
|
|
||||||
(custom-set-faces
|
(custom-set-faces
|
||||||
;; custom-set-faces was added by Custom.
|
;; custom-set-faces was added by Custom.
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; 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
|
helper = !/usr/bin/gh auth git-credential
|
||||||
[credential]
|
[credential]
|
||||||
helper = store
|
helper = store
|
||||||
|
[core]
|
||||||
|
editor = emacs
|
||||||
|
|||||||
Reference in New Issue
Block a user