From 673315ac65411d3019fc366ec4b9310f8bb8e896 Mon Sep 17 00:00:00 2001 From: Kat Inskip Date: Sat, 13 Dec 2025 07:20:48 -0800 Subject: [PATCH] feat: emacs changes --- emacs/doom.d/config.el | 6 +++++- emacs/doom.d/init.el | 20 ++++++++++---------- emacs/home.nix | 4 ++-- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/emacs/doom.d/config.el b/emacs/doom.d/config.el index 9746b74f..010284e5 100644 --- a/emacs/doom.d/config.el +++ b/emacs/doom.d/config.el @@ -32,7 +32,7 @@ ;; There are two ways to load a theme. Both assume the theme is installed and ;; available. You can either set `doom-theme' or manually load a theme with the ;; `load-theme' function. This is the default: -(setq doom-theme 'doom-one) +(setq doom-theme 'doom-dracula) ;; This determines the style of line numbers in effect. If set to `nil', line ;; numbers are disabled. For relative line numbers, set this to `relative'. @@ -42,6 +42,10 @@ ;; change `org-directory'. It must be set before org loads! (setq org-directory "~/org/") +(add-hook 'prog-mode-hook #'rainbow-delimiters-mode) + +(setq elfeed-feeds '(("https://lobste.rs/rss" tech) + ("https://news.ycombinator.com/rss" tech))) ;; Whenever you reconfigure a package, make sure to wrap your config in an ;; `after!' block, otherwise Doom's defaults may override your settings. E.g. diff --git a/emacs/doom.d/init.el b/emacs/doom.d/init.el index a3114df4..f80cea4e 100644 --- a/emacs/doom.d/init.el +++ b/emacs/doom.d/init.el @@ -33,11 +33,11 @@ doom ; what makes DOOM look the way it does doom-dashboard ; a nifty splash screen for Emacs ;;doom-quit ; DOOM quit-message prompts when you quit Emacs - ;;(emoji +unicode) ; 🙂 + (emoji +unicode) ; 🙂 hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW ;;indent-guides ; highlighted indent columns ;;ligatures ; ligatures and symbols to make your code pretty again - ;;minimap ; show a map of the code on the side + minimap ; show a map of the code on the side modeline ; snazzy, Atom-inspired modeline, plus API ;;nav-flash ; blink cursor line after big motions ;;neotree ; a project drawer, like NERDTree for vim @@ -45,7 +45,7 @@ (popup +defaults) ; tame sudden yet inevitable temporary windows ;;smooth-scroll ; So smooth you won't believe it's not butter ;;tabs ; a tab bar for Emacs - ;;treemacs ; a project drawer, like neotree but cooler + treemacs ; a project drawer, like neotree but cooler ;;unicode ; extended unicode support for various languages (vc-gutter +pretty) ; vcs diff in the fringe vi-tilde-fringe ; fringe tildes to mark beyond EOB @@ -62,7 +62,7 @@ ;;lispy ; vim for lisp, for people who don't like vim ;;multiple-cursors ; editing in many places at once ;;objed ; text object editing for the innocent - ;;parinfer ; turn lisp into python, sort of + parinfer ; turn lisp into python, sort of ;;rotate-text ; cycle region at point between text candidates snippets ; my elves. They type so I don't have to (whitespace +guess +trim) ; a butler for your whitespace @@ -71,8 +71,8 @@ :emacs dired ; making dired pretty [functional] electric ; smarter, keyword-based electric-indent - ;;eww ; the internet is gross - ;;ibuffer ; interactive buffer management + eww ; the internet is gross + ibuffer ; interactive buffer management tramp ; remote files at your arthritic fingertips undo ; persistent, smarter undo for your inevitable mistakes vc ; version-control and Emacs, sitting in a tree @@ -85,8 +85,8 @@ :checkers syntax ; tasing you for every semicolon you forget - ;;(spell +flyspell) ; tasing you for misspelling mispelling - ;;grammar ; tasing grammar mistake every you make + (spell +flyspell) ; tasing you for misspelling mispelling + grammar ; tasing grammar mistake every you make :tools ;;ansible @@ -187,11 +187,11 @@ ;;(wanderlust +gmail) :app - ;;calendar + calendar ;;emms ;;everywhere ; *leave* Emacs!? You must be joking ;;irc ; how neckbeards socialize - ;;(rss +org) ; emacs as an RSS reader + (rss +org) ; emacs as an RSS reader :config ;;literate diff --git a/emacs/home.nix b/emacs/home.nix index b344e188..5b88165d 100644 --- a/emacs/home.nix +++ b/emacs/home.nix @@ -1,8 +1,8 @@ -{ config, ... }: { +{ config, pkgs, ... }: { programs.doom-emacs = { enable = true; doomDir = ./doom.d; doomLocalDir = "${config.home.homeDirectory}/.local/share/nix-doom"; - extraPackages = epkgs: [ epkgs.treesit-grammars.with-all-grammars ]; + extraPackages = epkgs: [ epkgs.treesit-grammars.with-all-grammars epkgs.rainbow-delimiters pkgs.ispell ]; }; }