adds treemacs

This commit is contained in:
2023-04-20 17:16:22 +02:00
parent 0460e55c29
commit 3a120dde3c

31
.emacs
View File

@@ -54,6 +54,23 @@
(add-to-list 'default-frame-alist '(fullscreen . maximized))
(add-hook 'before-save-hook 'delete-trailing-whitespace)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Straight
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 6))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Use-Package
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -67,6 +84,8 @@
(package-install 'use-package)
)
(require 'use-package-ensure)
(setq use-package-always-ensure t)
@@ -196,7 +215,6 @@
)
)
)
:bind (
("C-c C-d" . lsp-ui-doc-toggle)
)
@@ -219,6 +237,17 @@
(setq lsp-ui-sideline-show-diagnostics nil)
)
(use-package treemacs)
(use-package treemacs-projectile)
(use-package treemacs-devicons
:straight (treemacs-devicons
:type git :host github :repo "rainstormstudio/treemacs-devicons")
:config
(treemacs-load-theme "devicons"))
(use-package lsp-treemacs
:after lsp-mode
)
(use-package lsp-ltex
:init
(setq lsp-ltex-version "15.2.0")) ; make sure you have set this, see below