From c9cb5e3db2d2f04c327b4dbe7000e64f8c3bc153 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Mon, 7 Mar 2022 15:09:04 -0500 Subject: [PATCH] Doom Emacs: Seperate out ui configuration --- doom/.config/doom/+ui.el | 21 +++++++++++++++++++++ doom/.config/doom/config.el | 25 +++---------------------- 2 files changed, 24 insertions(+), 22 deletions(-) create mode 100644 doom/.config/doom/+ui.el diff --git a/doom/.config/doom/+ui.el b/doom/.config/doom/+ui.el new file mode 100644 index 0000000..069d65b --- /dev/null +++ b/doom/.config/doom/+ui.el @@ -0,0 +1,21 @@ +;;; ../../.dotfiles/doom/.config/doom/+ui.el -*- lexical-binding: t; -*- +;;; UI Adjustments + +;; Font! +;; Doom exposes five (optional) variables for controlling fonts in Doom: +;; +;; - `doom-font' -- the primary font to use +;; - `doom-variable-pitch-font' -- a non-monospace font (where applicable) +;; - `doom-big-font' -- used for `doom-big-font-mode'; use this for +;; presentations or streaming. +;; - `doom-unicode-font' -- for unicode glyphs +;; - `doom-serif-font' -- for the `fixed-pitch-serif' face + +(setq doom-font (font-spec :family "Jetbrains Mono" :size 17)) + +;; Theme +(setq doom-theme 'doom-gruvbox) + +;; Display +(setq display-line-numbers-type 'relative) +(menu-bar-mode +1) ; add back menu bar diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el index 6830520..d6233c0 100644 --- a/doom/.config/doom/config.el +++ b/doom/.config/doom/config.el @@ -4,29 +4,10 @@ ;; sync' after modifying this file! (setq user-full-name "earnest ma" - user-mail-address "me@earne.link") - -;; Doom exposes five (optional) variables for controlling fonts in Doom: -;; -;; - `doom-font' -- the primary font to use -;; - `doom-variable-pitch-font' -- a non-monospace font (where applicable) -;; - `doom-big-font' -- used for `doom-big-font-mode'; use this for -;; presentations or streaming. -;; - `doom-unicode-font' -- for unicode glyphs -;; - `doom-serif-font' -- for the `fixed-pitch-serif' face - -(setq doom-font "Jetbrains Mono 11") - -(setq doom-theme 'doom-gruvbox) - -;; 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'. -(setq display-line-numbers-type t) - -;; If you use `org' and don't want your org files in the default location below, -;; change `org-directory'. It must be set before org loads! -(setq org-directory "~/org/") + user-mail-address "me@earne.link" + org-directory "~/org/") +(load! "+ui") ;; 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.