update
This commit is contained in:
parent
fb46d04a50
commit
8a269b52e9
|
@ -9,6 +9,12 @@ with pkgs;
|
||||||
alwaysEnsure = true;
|
alwaysEnsure = true;
|
||||||
alwaysTangle = true;
|
alwaysTangle = true;
|
||||||
|
|
||||||
|
extraEmacsPackages = epkgs:
|
||||||
|
with epkgs; [
|
||||||
|
treemacs
|
||||||
|
treemacs-evil
|
||||||
|
];
|
||||||
|
|
||||||
override = epkgs:
|
override = epkgs:
|
||||||
epkgs
|
epkgs
|
||||||
// {
|
// {
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
; Fixes "Symbol's value as variable is void: personal-keybindings" error
|
||||||
|
(require 'bind-key)
|
||||||
|
|
||||||
; Disable bars
|
; Disable bars
|
||||||
(menu-bar-mode -1)
|
(menu-bar-mode -1)
|
||||||
(scroll-bar-mode -1)
|
(scroll-bar-mode -1)
|
||||||
|
@ -19,12 +22,20 @@
|
||||||
(use-package emojify
|
(use-package emojify
|
||||||
:hook (after-init . global-emojify-mode))
|
: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
|
; Evil mode
|
||||||
(use-package evil
|
(use-package evil
|
||||||
:ensure t
|
:ensure t
|
||||||
:init
|
:init
|
||||||
(setq evil-want-integration t) ;; This is optional since it's already set to t by default.
|
(setq evil-want-integration t) ;; This is optional since it's already set to t by default.
|
||||||
(setq evil-want-keybinding nil)
|
(setq evil-want-keybinding nil)
|
||||||
|
(setq evil-undo-system 'undo-tree)
|
||||||
:config
|
:config
|
||||||
(evil-mode 1))
|
(evil-mode 1))
|
||||||
|
|
||||||
|
@ -41,14 +52,8 @@
|
||||||
:config
|
:config
|
||||||
(global-evil-leader-mode)
|
(global-evil-leader-mode)
|
||||||
(setq evil-leader/leader "<SPC>") ;; Set the leader key to space
|
(setq evil-leader/leader "<SPC>") ;; Set the leader key to space
|
||||||
(evil-leader/set-key
|
(evil-leader/set-key "a" #'eglot-code-actions)
|
||||||
"a" #'eglot-code-actions))
|
(evil-leader/set-key "e" #'treemacs))
|
||||||
|
|
||||||
(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
|
|
||||||
|
|
||||||
; Dashboard
|
; Dashboard
|
||||||
(use-package dashboard
|
(use-package dashboard
|
||||||
|
@ -57,6 +62,14 @@
|
||||||
(dashboard-setup-startup-hook)
|
(dashboard-setup-startup-hook)
|
||||||
(setq dashboard-startup-banner 'logo))
|
(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
|
; Direnv
|
||||||
(use-package direnv
|
(use-package direnv
|
||||||
:config
|
:config
|
||||||
|
@ -120,3 +133,12 @@
|
||||||
|
|
||||||
(use-package eglot :hook (eglot-mode . sideline-mode)) ; enable it when eglot is on
|
(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))
|
||||||
|
|
Loading…
Reference in a new issue