This commit is contained in:
Mars 2024-08-13 00:54:31 -04:00
parent fb46d04a50
commit 8a269b52e9
Signed by: pupbrained
GPG key ID: 0FF5B8826803F895
2 changed files with 36 additions and 8 deletions

View file

@ -9,6 +9,12 @@ with pkgs;
alwaysEnsure = true;
alwaysTangle = true;
extraEmacsPackages = epkgs:
with epkgs; [
treemacs
treemacs-evil
];
override = epkgs:
epkgs
// {

View file

@ -1,3 +1,6 @@
; Fixes "Symbol's value as variable is void: personal-keybindings" error
(require 'bind-key)
; Disable bars
(menu-bar-mode -1)
(scroll-bar-mode -1)
@ -19,12 +22,20 @@
(use-package emojify
:hook (after-init . global-emojify-mode))
; Undo tree
(use-package undo-tree
:demand t
:config
(global-undo-tree-mode) ;; Enable undo-tree mode globally
(setq undo-tree-history-directory-alist '(("." . "~/.emacs.d/undo")))) ;; Directory for undo files
; Evil mode
(use-package evil
:ensure t
:init
(setq evil-want-integration t) ;; This is optional since it's already set to t by default.
(setq evil-want-keybinding nil)
(setq evil-undo-system 'undo-tree)
:config
(evil-mode 1))
@ -41,14 +52,8 @@
:config
(global-evil-leader-mode)
(setq evil-leader/leader "<SPC>") ;; Set the leader key to space
(evil-leader/set-key
"a" #'eglot-code-actions))
(use-package undo-tree
:demand t
:config
(global-undo-tree-mode) ;; Enable undo-tree mode globally
(setq undo-tree-history-directory-alist '(("." . "~/.emacs.d/undo")))) ;; Directory for undo files
(evil-leader/set-key "a" #'eglot-code-actions)
(evil-leader/set-key "e" #'treemacs))
; Dashboard
(use-package dashboard
@ -57,6 +62,14 @@
(dashboard-setup-startup-hook)
(setq dashboard-startup-banner 'logo))
(defun dashboard-recentf-filter (file)
"Add to ~recentf-exclude~ to filter recent files in dashboard buffer."
(when (eq (get-buffer dashboard-buffer-name)
(current-buffer))
(string-match "treemacs-persist$" file)))
(add-to-list 'recentf-exclude 'dashboard-recentf-filter)
; Direnv
(use-package direnv
:config
@ -120,3 +133,12 @@
(use-package eglot :hook (eglot-mode . sideline-mode)) ; enable it when eglot is on
; Centaur tabs
(use-package centaur-tabs
:demand t
:config
(centaur-tabs-mode t)
(setq centaur-tabs-style "wave")
:bind
("C-<prior>" . centaur-tabs-backward)
("C-<next>" . centaur-tabs-forward))