Skip to content

Commit

Permalink
tweak(files): make treemacs obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Apr 11, 2024
1 parent 868e99f commit 1b9b00c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 20 deletions.
19 changes: 0 additions & 19 deletions modules/me-files.el
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,6 @@
:after minemacs-loaded
:demand t)

(use-package treemacs
:straight t
:init
(+map! "op" #'treemacs)
:custom
(treemacs-persist-file (concat minemacs-local-dir "treemacs/persist.el"))
(treemacs-last-error-persist-file (concat minemacs-local-dir "treemacs/last-error-persist.el"))
(treemacs-width 30)
:config
;; Use the same height for the root node (project directory)
(set-face-attribute 'treemacs-root-face nil :height 1.0))

(use-package treemacs-nerd-icons
:straight t
:after treemacs nerd-icons
:demand t
:config
(treemacs-load-theme "nerd-icons"))

(use-package sudo-edit
:straight t
:hook (minemacs-first-file . sudo-edit-indicator-mode)
Expand Down
32 changes: 32 additions & 0 deletions modules/obsolete/me-treemacs.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
;;; me-treemacs.el --- Treemacs -*- lexical-binding: t; -*-

;; Copyright (C) 2022-2024 Abdelhak Bougouffa

;; Author: Abdelhak Bougouffa (rot13 "nobhtbhssn@srqbencebwrpg.bet")

;;; Commentary:

;;; Code:

(use-package treemacs
:straight t
:custom
(treemacs-persist-file (concat minemacs-local-dir "treemacs/persist.el"))
(treemacs-last-error-persist-file (concat minemacs-local-dir "treemacs/last-error-persist.el"))
(treemacs-width 30)
:config
;; Use the same height for the root node (project directory)
(set-face-attribute 'treemacs-root-face nil :height 1.0))

(use-package treemacs-nerd-icons
:straight t
:after treemacs nerd-icons
:demand t
:config
(treemacs-load-theme "nerd-icons"))


(provide 'obsolete/me-treemacs)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; me-treemacs.el ends here
2 changes: 1 addition & 1 deletion skel/modules.el
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
me-latex ; LaTeX (auctex, auctex-latexmk, ...)
;; me-biblio ; Bibliography & citations (citar, zotxt, ...)
me-natural-langs ; Natural language stuff (spell-fu, go-translate, eglot-ltex, ...)
me-files ; Files and directories (dirvish, treemacs, vlf, ...)
me-files ; Files and directories (dirvish, vlf, ...)
me-tools ; System tools (vterm, tldr, ssh-deploy, docker, ...)
me-tty ; Emacs from terminal (xt-mouse, xclip, ...)
me-fun ; Games and funny packages (xkcd, speed-type, ...)
Expand Down

0 comments on commit 1b9b00c

Please sign in to comment.