Fork me on GitHub
#emacs
<
2021-09-21
>
bherrmann12:09:30

fyi (bare bones is)

$ cat ~/.emacs
(require 'package)
(add-to-list 'package-archives '("melpa" . "") t)
(package-initialize)
(setq package-selected-packages '(clojure-mode lsp-mode cider lsp-treemacs flycheck company))
(when (cl-find-if-not #'package-installed-p package-selected-packages)
  (package-refresh-contents)
  (mapc #'package-install package-selected-packages))
(add-hook 'clojure-mode-hook 'lsp)
(add-hook 'clojurescript-mode-hook 'lsp)
(add-hook 'clojurec-mode-hook 'lsp)
(setq gc-cons-threshold (* 100 1024 1024)
      read-process-output-max (* 1024 1024)
      treemacs-space-between-root-nodes nil
      company-minimum-prefix-length 1
      lsp-lens-enable t
      lsp-signature-auto-activate nil
      ; lsp-enable-indentation nil ; uncomment to use cider indentation instead of lsp
      ; lsp-enable-completion-at-point nil ; uncomment to use cider completion instead of lsp
      )

ericdallo12:09:50

You need to tell lsp-mode what is the project root, you can fix it with lsp-workspace-folders-remove and then lsp again

bherrmann12:09:57

I tried removing my .emacs.d directory ... that caused a lot of melpa downloads. Now it is prompting about importing a project. So I think it is better.

borkdude12:09:27

It worked for me

borkdude12:09:31

If I added lsp-clojure-custom-server-command '("/Users/borkdude/Dropbox/bin/clojure-lsp")

borkdude12:09:53

which is where I have the binary

bherrmann12:09:24

Yea, I think it was loading clojure-lsp - but it wasnt prompting about the project root.

bherrmann12:09:45

it is now working on my bb project too. Nifty!

🎉 2
👍 2
bherrmann23:09:18

What color scheme was used in the video?

bherrmann23:09:40

Wow thats quite a story about the theme.... https://draculatheme.com/about

ericdallo23:09:25

yeah, My whole OS use that theme for almost everything :) https://github.com/ericdallo/dotfiles#dotfiles