diff --git a/users/tacocat/.config/emacs/early-init.el b/users/tacocat/.config/emacs/early-init.el new file mode 100644 index 0000000..512068a --- /dev/null +++ b/users/tacocat/.config/emacs/early-init.el @@ -0,0 +1 @@ +(setq package-enable-at-startup nil) diff --git a/users/tacocat/.config/emacs/init.el b/users/tacocat/.config/emacs/init.el new file mode 100644 index 0000000..e51f975 --- /dev/null +++ b/users/tacocat/.config/emacs/init.el @@ -0,0 +1,37 @@ +(setq-default fill-column 80) +(setq-default tab-width 2) +(setq ring-bell-function 'ignore) + +;; Display line numbers in every buffer +(global-display-line-numbers-mode 1) +(setq display-line-numbers-type 'relative) +(blink-cursor-mode 0) +(global-hl-line-mode 1) + +;; Turn off some unneeded UI elements +(menu-bar-mode -1) +(tool-bar-mode -1) +(scroll-bar-mode -1) + +(add-to-list 'default-frame-alist + '(font . "Mononoki Nerd Font-14")) + +;; Initialize straight package manager +(defvar bootstrap-version) +(let ((bootstrap-file + (expand-file-name + "straight/repos/straight.el/bootstrap.el" + (or (bound-and-true-p straight-base-dir) + user-emacs-directory))) + (bootstrap-version 7)) + (unless (file-exists-p bootstrap-file) + (with-current-buffer + (url-retrieve-synchronously + "https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el" + 'silent 'inhibit-cookies) + (goto-char (point-max)) + (eval-print-last-sexp))) + (load bootstrap-file nil 'nomessage)) + +(straight-use-package 'material-theme) +(load-theme 'material t) diff --git a/users/tacocat/home.nix b/users/tacocat/home.nix index 3971b42..3cd26f6 100644 --- a/users/tacocat/home.nix +++ b/users/tacocat/home.nix @@ -24,6 +24,7 @@ ]; packages = with pkgs; [ fd + emacs vimpc ashuffle ardour @@ -128,4 +129,10 @@ name = "Papirus"; }; }; + + xdg.configFile."./" = { + source = ./.config; + recursive = true; + }; + }