From c4c6b79c5116f94d8a8c604a0971f5ea806efac5 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 21 Dec 2024 12:17:22 -0500 Subject: [PATCH] tree-wide: drop emacs --- homeManagerModules/apps/default.nix | 1 - homeManagerModules/apps/emacs/default.nix | 34 ---------------- homeManagerModules/apps/emacs/emacs.el | 48 ----------------------- homeManagerModules/options.nix | 1 - 4 files changed, 84 deletions(-) delete mode 100644 homeManagerModules/apps/emacs/default.nix delete mode 100644 homeManagerModules/apps/emacs/emacs.el diff --git a/homeManagerModules/apps/default.nix b/homeManagerModules/apps/default.nix index a3e8b95c..083e4261 100644 --- a/homeManagerModules/apps/default.nix +++ b/homeManagerModules/apps/default.nix @@ -2,7 +2,6 @@ imports = [ ./alacritty ./chromium - ./emacs ./fastfetch ./firefox ./fuzzel diff --git a/homeManagerModules/apps/emacs/default.nix b/homeManagerModules/apps/emacs/default.nix deleted file mode 100644 index cb446dab..00000000 --- a/homeManagerModules/apps/emacs/default.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: { - config = lib.mkIf config.ar.home.apps.emacs.enable { - programs.emacs = { - enable = true; - extraConfig = builtins.readFile ./emacs.el; - - extraPackages = epkgs: (with epkgs; [ - better-defaults - markdown-mode - nix-mode - org - org-bullets - org-journal - org-roam - ox-pandoc - projectile - python - treemacs - treemacs-projectile - treemacs-tab-bar - use-package - yaml - yaml-mode - ]); - - package = pkgs.emacs-nox; - }; - }; -} diff --git a/homeManagerModules/apps/emacs/emacs.el b/homeManagerModules/apps/emacs/emacs.el deleted file mode 100644 index 11c9ebc3..00000000 --- a/homeManagerModules/apps/emacs/emacs.el +++ /dev/null @@ -1,48 +0,0 @@ -;(defun on-after-init () -; (unless (display-graphic-p (selected-frame)) -; (set-face-background 'default "unspecified-bg" (selected-frame)))) - -;(add-hook 'window-setup-hook 'on-after-init) - -; 4 spaces > tabs. -(setq-default indent-tabs-mode nil) -(setq-default tab-width 4) -(setq indent-line-function 'insert-tab) - -; xterm mouse mode -(xterm-mouse-mode 1) - -; Enable line numbers -(global-display-line-numbers-mode 1) -(global-hl-line-mode t) - -; Enable mouse scrolling -(global-set-key (kbd "") 'previous-line) -(global-set-key (kbd "") 'next-line) - -; Enable tabs -(tab-bar-mode 1) -(setq tab-bar-show 1) -(setq tab-bar-new-tab-choice "*dashboard*") - -; Enable treemacs -(add-hook 'emacs-startup-hook 'treemacs) -(setq treemacs-width 20) -(treemacs-resize-icons 16) ; Adjust the icon size according to your preference -(setq treemacs-follow-mode t) ; Enable follow mode -(setq treemacs-filewatch-mode t) ; Enable file watch mode -(setq treemacs-fringe-indicator-mode t) ; Enable fringe indicator mode -(setq treemacs-git-mode 'simple) ; Set git mode to simple -(setq treemacs-git-integration t) ; Enable git integration -(setq treemacs-show-hidden-files t) ; Show hidden files -(setq treemacs-icons-dired-mode t) ; Use icons in dired buffers -(setq treemacs-set-scope-type 'Tabs) - -; Enable column 80 line for coding -(setq-default fill-column 80) -(add-hook 'prog-mode-hook #'display-fill-column-indicator-mode) - -(setq org-directory "~/sync/org-roam/") -(setq org-roam-directory (file-truename "~/sync/org-roam")) -(setq org-roam-dailies-directory "journal/") -(org-roam-db-autosync-mode) diff --git a/homeManagerModules/options.nix b/homeManagerModules/options.nix index e6049bd2..eb92e102 100644 --- a/homeManagerModules/options.nix +++ b/homeManagerModules/options.nix @@ -16,7 +16,6 @@ in { package = lib.mkPackageOption pkgs "brave" {}; }; - emacs.enable = lib.mkEnableOption "Emacs text editor."; fastfetch.enable = lib.mkEnableOption "Fastfetch."; firefox.enable = lib.mkEnableOption "Firefox web browser."; fuzzel.enable = lib.mkEnableOption "Fuzzel app launcher.";