From 164549b66c0b7fea27a7eec91ee4f1bcaa70dd86 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Sun, 19 Oct 2025 12:56:30 +0200 Subject: [PATCH] feat(emacs): added some more plugins. --- flake.lock | 54 ++++++------- .../home-manager/configs/emacs/config.org | 76 +++++++++++++++++++ 2 files changed, 103 insertions(+), 27 deletions(-) diff --git a/flake.lock b/flake.lock index 9ceea8a..15db389 100644 --- a/flake.lock +++ b/flake.lock @@ -30,11 +30,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1754433428, - "narHash": "sha256-NA/FT2hVhKDftbHSwVnoRTFhes62+7dxZbxj5Gxvghs=", + "lastModified": 1760836749, + "narHash": "sha256-wyT7Pl6tMFbFrs8Lk/TlEs81N6L+VSybPfiIgzU8lbQ=", "owner": "ryantm", "repo": "agenix", - "rev": "9edb1787864c4f59ae5074ad498b6272b3ec308d", + "rev": "2f0f812f69f3eb4140157fe15e12739adf82e32a", "type": "github" }, "original": { @@ -253,11 +253,11 @@ "nixpkgs-stable": "nixpkgs-stable" }, "locked": { - "lastModified": 1760808266, - "narHash": "sha256-Xa8sYbZmHFmM+pJUxMyJJIWYELkN3BJma5hqlNjWpvU=", + "lastModified": 1760865834, + "narHash": "sha256-s2Wg7YjuqRY7YMYlqd6hFCi6xsdtQovQT/Wof+5Jvek=", "owner": "nix-community", "repo": "emacs-overlay", - "rev": "fc9f5fc2de590ab90d9c89d2f66ad443efd3da4c", + "rev": "0e3c4a7d197b9e1f6145a914138225125c415887", "type": "github" }, "original": { @@ -434,11 +434,11 @@ ] }, "locked": { - "lastModified": 1759362264, - "narHash": "sha256-wfG0S7pltlYyZTM+qqlhJ7GMw2fTF4mLKCIVhLii/4M=", + "lastModified": 1760813311, + "narHash": "sha256-lbHQ7FXGzt6/IygWvJ1lCq+Txcut3xYYd6VIpF1ojkg=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "758cf7296bee11f1706a574c77d072b8a7baa881", + "rev": "4e627ac2e1b8f1de7f5090064242de9a259dbbc8", "type": "github" }, "original": { @@ -1038,11 +1038,11 @@ "xdph": "xdph" }, "locked": { - "lastModified": 1760813095, - "narHash": "sha256-D0AU+KKB9aGqiwDaS7er2pITjn9AS+XStzigPSoLeOQ=", + "lastModified": 1760835415, + "narHash": "sha256-nz9qPsfNTyn1XlpVWffq3zFW471J1b0kkK7uttW/8GI=", "owner": "hyprwm", "repo": "Hyprland", - "rev": "39d62e1487052da2751ec1e36d243e3e92e24f6a", + "rev": "ba077d8ff09e38a5b20c5d06d71daab52bbcc36d", "type": "github" }, "original": { @@ -1415,11 +1415,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1760745913, - "narHash": "sha256-r7Xd0zoNs+SjZtDLzFFAMkDnu6j05F4I5a+HWJG0eVE=", + "lastModified": 1760832323, + "narHash": "sha256-THAk4qzBOsp03bDBYK9Ek3mQEvl2g8Fea0QhpCoEzfs=", "owner": "nix-community", "repo": "neovim-nightly-overlay", - "rev": "368a73654ebe1fe3620d6235ddf5add1ab93d9cb", + "rev": "3c9432813e5528a13075f5493da6ff9ef249ad1d", "type": "github" }, "original": { @@ -1431,11 +1431,11 @@ "neovim-src": { "flake": false, "locked": { - "lastModified": 1760680927, - "narHash": "sha256-Odf4k6/tFYkPtS0mBH1uaeMmMuKLjfpNsvjRvNXc4Xw=", + "lastModified": 1760810839, + "narHash": "sha256-VYkZdjjMOYsugoSydDDWE/1l79swm4zc4NJl1Z0brjA=", "owner": "neovim", "repo": "neovim", - "rev": "a04c73ca071fdc2461365a8a10a314bd0d1d806d", + "rev": "be73c35943f85e7835c3a0fc89bddaeba944db29", "type": "github" }, "original": { @@ -1513,11 +1513,11 @@ ] }, "locked": { - "lastModified": 1760241904, - "narHash": "sha256-OD7QnaGEVNdukYEbJbUNWPsvnDrpbZOZxVIk6Pt9Jhw=", + "lastModified": 1760846226, + "narHash": "sha256-xmU8kAsRprJiTGBTaGrwmjBP3AMA9ltlrxHKFuy5JWc=", "owner": "nix-community", "repo": "nix-index-database", - "rev": "c9f5ea45f25652ec2f771f9426ccacb21cbbaeaa", + "rev": "5024e1901239a76b7bf94a4cd27f3507e639d49e", "type": "github" }, "original": { @@ -2461,11 +2461,11 @@ ] }, "locked": { - "lastModified": 1760120816, - "narHash": "sha256-gq9rdocpmRZCwLS5vsHozwB6b5nrOBDNc2kkEaTXHfg=", + "lastModified": 1760802554, + "narHash": "sha256-5YkOYOCF8/XNw89/ABKFB0c/P78U2EVuKRDGTql6+kA=", "owner": "numtide", "repo": "treefmt-nix", - "rev": "761ae7aff00907b607125b2f57338b74177697ed", + "rev": "296ebf0c3668ebceb3b0bfee55298f112b4b5754", "type": "github" }, "original": { @@ -2580,11 +2580,11 @@ ] }, "locked": { - "lastModified": 1760768820, - "narHash": "sha256-rg4fJ8ocx3rCz//eajnxBmKZV4qulLtEPtBc+mtgrt4=", + "lastModified": 1760843785, + "narHash": "sha256-lp6xctqGBNKZ3pmRlALX1puVG7EKQa4xAq+2leThDKw=", "owner": "0xc000022070", "repo": "zen-browser-flake", - "rev": "fd874a0b5f281bc4e173d81b03726d7fc7983cfd", + "rev": "a36f9da8a234b59dd5fc4484e37dadae2aa75b80", "type": "github" }, "original": { diff --git a/modules/linux/home-manager/configs/emacs/config.org b/modules/linux/home-manager/configs/emacs/config.org index 14bda68..62ee070 100644 --- a/modules/linux/home-manager/configs/emacs/config.org +++ b/modules/linux/home-manager/configs/emacs/config.org @@ -1,3 +1,6 @@ + + + #+Title: Crony's Emacs Config #+AUTHOR: Crony Akatsuki #+DESCRIPTION: Crony's personal emacs config @@ -462,3 +465,76 @@ extending corpu (evil-define-key 'normal peep-dired-mode-map (kbd "k") 'peep-dired-prev-file) ) #+end_src + +* ALL THE ICONS + +#+begin_src emacs-lisp +(use-package all-the-icons + :ensure t + :if (display-graphic-p)) + +;; dired icons +(use-package all-the-icons-dired + :after all-the-icons + :hook (dired-mode . (lambda () (all-the-icons-dired-mode t)))) + +;; completion with marginalia +(use-package all-the-icons-completion + :after (marginalia all-the-icons) + :hook (marginalia-mode . all-the-icons-completion-marginalia-setup) + :init + (all-the-icons-completion-mode)) +#+end_src + +* GIT + +** TIME MACHINE + +#+begin_src emacs-lisp +(use-package git-timemachine + :after git-timemachine + :hook (evil-normalize-keymaps . git-timemachine-hook) + :config + (evil-define-key 'normal git-timemachine-mode-map (kbd "C-j") 'git-timemachine-show-previous-revision) + (evil-define-key 'normal git-timemachine-mode-map (kbd "C-k") 'git-timemachine-show-next-revision) +) +#+end_src + +** DIFF HIGHLIGHT + +#+begin_src emacs-lisp +(use-package diff-hl + :config + (global-diff-hl-mode t)) +#+end_src + +** MAGIT + +#+begin_src emacs-lisp +(use-package magit) +#+end_src + +* HIGHLIGHT TODO + +#+begin_src emacs-lisp +(use-package hl-todo + :hook ((prog-mode . hl-todo-mode)) + :config + (setq hl-todo-highlight-punctuation ":" + hl-todo-keyword-faces + `(("TODO" warning bold) + ("FIXME" error bold) + ("HACK" font-lock-constant-face bold) + ("REVIEW" font-lock-keyword-face bold) + ("NOTE" success bold) + ("DEPRECATED" font-lock-doc-face bold)))) +#+end_src + +* PROJECTS LIST + +#+begin_src emacs-lisp +(use-package projectile + :diminish + :config + (projectile-mode 1)) +#+end_src