home-manager: updated emacs config

This commit is contained in:
Aly Raffauf 2024-03-22 22:07:14 -04:00
parent 20df495ca5
commit f2c787c2fe

View file

@ -19,6 +19,8 @@
org-roam org-roam
nix-mode nix-mode
treemacs treemacs
treemacs-tab-bar
treemacs-projectile
projectile projectile
yaml yaml
yaml-mode yaml-mode
@ -28,7 +30,7 @@
python python
]) ])
); );
package = pkgs.emacs-nox; # package = pkgs.emacs-nox;
extraConfig = '' extraConfig = ''
; 4 spaces > tabs. ; 4 spaces > tabs.
(setq-default indent-tabs-mode nil) (setq-default indent-tabs-mode nil)
@ -53,6 +55,7 @@
; Enable treemacs ; Enable treemacs
(add-hook 'emacs-startup-hook 'treemacs) (add-hook 'emacs-startup-hook 'treemacs)
(treemacs-load-theme "Default")
(setq treemacs-width 20) (setq treemacs-width 20)
(treemacs-resize-icons 16) ; Adjust the icon size according to your preference (treemacs-resize-icons 16) ; Adjust the icon size according to your preference
(setq treemacs-follow-mode t) ; Enable follow mode (setq treemacs-follow-mode t) ; Enable follow mode
@ -62,6 +65,7 @@
(setq treemacs-git-integration t) ; Enable git integration (setq treemacs-git-integration t) ; Enable git integration
(setq treemacs-show-hidden-files t) ; Show hidden files (setq treemacs-show-hidden-files t) ; Show hidden files
(setq treemacs-icons-dired-mode t) ; Use icons in dired buffers (setq treemacs-icons-dired-mode t) ; Use icons in dired buffers
(setq treemacs-set-scope-type 'Tabs)
; Enable column 80 line for coding ; Enable column 80 line for coding
(setq-default fill-column 80) (setq-default fill-column 80)