From 3a120dde3c77cd736a2e18ce3acdfd2d9b780fa4 Mon Sep 17 00:00:00 2001 From: Alexandre Tuleu Date: Thu, 20 Apr 2023 17:16:22 +0200 Subject: [PATCH] adds treemacs --- .emacs | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/.emacs b/.emacs index 10ca29b..63b79a2 100644 --- a/.emacs +++ b/.emacs @@ -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