Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C#環境構築のページを作る #174

Open
conao3 opened this issue Sep 20, 2020 · 0 comments
Open

C#環境構築のページを作る #174

conao3 opened this issue Sep 20, 2020 · 0 comments

Comments

@conao3
Copy link
Member

conao3 commented Sep 20, 2020

とりあえず、このinit.elを実行すればよさそう。
起動方法は emacs -q -l ~/.debug.emacs.d/lsp-csharp/init.el
あとは適当なcsファイルを開き、プロンプトの誘導に従えばlsp-serverをインストールできる。

;;; init.el --- Sample clean init.el  -*- lexical-binding: t; -*-

;; ~/.debug.emacs.d/lsp-csharp/init.el

;; you can run like 'emacs -q -l ~/.debug.emacs.d/lsp-csharp/init.el'
(when load-file-name
  (setq user-emacs-directory
        (expand-file-name (file-name-directory load-file-name))))

(prog1 "leaf"
  (custom-set-variables
   '(package-archives '(("org"   . "https://orgmode.org/elpa/")
                        ("melpa" . "https://melpa.org/packages/")
                        ("gnu"   . "https://elpa.gnu.org/packages/"))))
  (package-initialize)
  (unless (package-installed-p 'leaf)
    (package-refresh-contents)
    (package-install 'leaf)))

(leaf csharp-mode :ensure t)

(leaf dap-mode :ensure t)
(leaf lsp-mode
  :ensure t
  :hook (csharp-mode-hook . lsp-deferred))
(leaf lsp-ui :ensure t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant