From 2e101dbe101f97045701e802580c173680b29940 Mon Sep 17 00:00:00 2001 From: Madeline Hashcube Date: Tue, 6 Oct 2026 19:36:11 -0500 Subject: [PATCH] fix: emaccsing --- users/hashcube/emacs.el | 13 +++++++++++++ users/hashcube/emacs.nix | 13 ++++++++++--- users/hashcube/pkgs/default.nix | 2 ++ 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/users/hashcube/emacs.el b/users/hashcube/emacs.el index 49ecfe7..1231df6 100644 --- a/users/hashcube/emacs.el +++ b/users/hashcube/emacs.el @@ -15,10 +15,23 @@ ;; Relative Line Numbers (display-line-numbers-mode) +(global-display-line-numbers-mode) (setq display-line-numbers 'relative) +(setq global-display-line-numbers-mode 'relative) (setq display-line-numbers-type 'relative) (column-number-mode 1) +(setq flycheck-languagetool-server-command '("languagetool-server")) + +;; Add a function to wrap buffers to 78 characters. +(defun wrap-like-email () + "Makes the current buffer wrap to 78 characters like email" + (interactive) + (setq-default fill-column 78) + (auto-fill-mode) +) +(add-hook 'org-mode-hook #'wrap-like-email) + ;; Setup Email Things (setq mail-user-agent 'mu4e) (setq mu4e-get-mail-command "offlineimap") diff --git a/users/hashcube/emacs.nix b/users/hashcube/emacs.nix index fac9b36..d282be7 100644 --- a/users/hashcube/emacs.nix +++ b/users/hashcube/emacs.nix @@ -1,6 +1,10 @@ -{ ... }: +{ pkgs, ... }: { + home.packages = with pkgs; [ + ispell + languagetool + ]; programs.emacs = { enable = true; extraPackages = (e: with e; [ @@ -17,6 +21,10 @@ vterm mu4e mark-graf + org-modern + bongo + + flycheck-languagetool # company mode company @@ -31,8 +39,7 @@ typst-ts-mode ]); extraConfig = builtins.readFile ./emacs.el; - overrides = e: e // { - }; + # overrides = e: e // {}; }; services.emacs = { enable = true; diff --git a/users/hashcube/pkgs/default.nix b/users/hashcube/pkgs/default.nix index 393c748..4affd37 100644 --- a/users/hashcube/pkgs/default.nix +++ b/users/hashcube/pkgs/default.nix @@ -29,6 +29,8 @@ woomer better-crew-link inputs.ytpm.packages.x86_64-linux.default + # why the fuck are these two different packages + zip unzip # packages that are a pain in the ass to build with cuda # freecad-wayland -- 2.51.2