Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Commit

Permalink
New zeroed theme, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Lyons committed Oct 2, 2021
1 parent 144e7bd commit cb752f3
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 823 deletions.
32 changes: 10 additions & 22 deletions emacs/.emacs.d/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

;; use-package package provides common package import functions
(unless (package-installed-p 'use-package)
(package-initialize)
(package-install 'use-package))
(setq use-package-verbose t)
(setq use-package-always-ensure t)
Expand All @@ -37,19 +38,6 @@
;; as it's much easier to open it up and hack it
(setq straight-use-package-by-default t)

(use-package dashboard
:config
(dashboard-setup-startup-hook))

(setq dashboard-projects-backend 'projectile)
(setq dashboard-items '((projects . 5)
(bookmarks . 5)
(agenda . 5)))

(setq dashboard-set-heading-icons t)
(setq dashboard-set-file-icons t)
(setq dashboard-filter-agenda-entry 'dashboard-no-filter-agenda)

;; ESC will also cancel/quit/etc.
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
(use-package general
Expand All @@ -61,26 +49,26 @@

(use-package hydra)

(use-package doom-themes
:init (load-theme 'doom-nord t))
(use-package autothemer
:init (load-theme 'zeroed t))

(setq use-dialog-box nil
use-file-dialog nil
cursor-type 'bar)

;; Set the default pitch face
(set-face-attribute 'default nil :font "Hack" :height 140)
(set-face-attribute 'default nil :font "Hack" :height 100)

;; Set the fixed pitch face
(set-face-attribute 'fixed-pitch nil
:font "Hack"
:weight 'light
:height 140)
:height 100)

;; Set the variable pitch face
(set-face-attribute 'variable-pitch nil
:font "Helvetica"
:height 165)
:font "Helvetica LT Std"
:height 120)

(global-linum-mode 1)
(defvar my-linum-current-line-number 0)
Expand Down Expand Up @@ -238,7 +226,7 @@
(window-height . fit-window-to-buffer)))
(org-roam-db-autosync-mode)
:custom
(org-roam-directory (file-truename "~/Projects/Writing/Roam/"))
(org-roam-directory (file-truename "/state/dustin/Writing/roam/"))
(org-roam-dailies-directory "daily/")
(org-roam-completion-everywhere t)
:bind
Expand Down Expand Up @@ -460,7 +448,7 @@ Note the weekly scope of the command's precision.")
(set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch))
(set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch)

(set-face-attribute 'org-document-title nil :font "SF Pro Display" :weight 'bold :height 1.2)
(set-face-attribute 'org-document-title nil :font "Helvetica LT Std" :weight 'bold :height 1.2)
(dolist (face '((org-level-1 . 1.2)
(org-level-2 . 1.15)
(org-level-3 . 1.1)
Expand All @@ -469,7 +457,7 @@ Note the weekly scope of the command's precision.")
(org-level-6 . 1.0)
(org-level-7 . 1.0)
(org-level-8 . 1.0)))
(set-face-attribute (car face) nil :font "SF Pro Display" :weight 'medium :height (cdr face)))
(set-face-attribute (car face) nil :font "Helvetica LT Std" :weight 'medium :height (cdr face)))

(defun dl/evil-hook ()
(dolist (mode '(eshell-mode
Expand Down
38 changes: 11 additions & 27 deletions emacs/.emacs.d/config.org
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Straight.el fetchs packages over git via use-package.
#+BEGIN_SRC emacs-lisp
;; use-package package provides common package import functions
(unless (package-installed-p 'use-package)
(package-initialize)
(package-install 'use-package))
(setq use-package-verbose t)
(setq use-package-always-ensure t)
Expand All @@ -74,23 +75,6 @@ Straight.el fetchs packages over git via use-package.
(setq straight-use-package-by-default t)
#+END_SRC

*** Dashboard
#+NAME: straight-el
#+BEGIN_SRC emacs-lisp
(use-package dashboard
:config
(dashboard-setup-startup-hook))

(setq dashboard-projects-backend 'projectile)
(setq dashboard-items '((projects . 5)
(bookmarks . 5)
(agenda . 5)))

(setq dashboard-set-heading-icons t)
(setq dashboard-set-file-icons t)
(setq dashboard-filter-agenda-entry 'dashboard-no-filter-agenda)
#+END_SRC

** Keybindings
*** Leader keys
I use general.el to define groups of keybindings under my 'leader' definition. You will see these definitions sprinkled throughout this file; my own private collection of fast shit. For more info, [[https://medium.com/usevim/vim-101-what-is-the-leader-key-f2f5c1fa610f][here]] is a good explanation on leader keys.
Expand Down Expand Up @@ -119,10 +103,10 @@ Hydra enables me drop into quick keybinding modes. See [[https://github.com/abo-
*** Themes
Some my own, some from others.

#+NAME: themes
#+NAME: themes-autothemer
#+BEGIN_SRC emacs-lisp
(use-package doom-themes
:init (load-theme 'doom-nord t))
(use-package autothemer
:init (load-theme 'zeroed t))
#+END_SRC

*** Windows
Expand All @@ -145,18 +129,18 @@ Turns off the various menu bars, they're quite ugly.
#+NAME: fonts
#+BEGIN_SRC emacs-lisp
;; Set the default pitch face
(set-face-attribute 'default nil :font "Hack" :height 140)
(set-face-attribute 'default nil :font "Hack" :height 100)

;; Set the fixed pitch face
(set-face-attribute 'fixed-pitch nil
:font "Hack"
:weight 'light
:height 140)
:height 100)

;; Set the variable pitch face
(set-face-attribute 'variable-pitch nil
:font "Helvetica"
:height 165)
:font "Helvetica LT Std"
:height 120)
#+END_SRC

***** Line numbers
Expand Down Expand Up @@ -383,7 +367,7 @@ If you haven't heard of org mode, go watch [[https://www.youtube.com/watch?v=SzA
(window-height . fit-window-to-buffer)))
(org-roam-db-autosync-mode)
:custom
(org-roam-directory (file-truename "~/Projects/Writing/Roam/"))
(org-roam-directory (file-truename "/state/dustin/Writing/roam/"))
(org-roam-dailies-directory "daily/")
(org-roam-completion-everywhere t)
:bind
Expand Down Expand Up @@ -670,7 +654,7 @@ Replaces the standard org-mode header asterisks with dots.
(set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch))
(set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch)

(set-face-attribute 'org-document-title nil :font "SF Pro Display" :weight 'bold :height 1.2)
(set-face-attribute 'org-document-title nil :font "Helvetica LT Std" :weight 'bold :height 1.2)
(dolist (face '((org-level-1 . 1.2)
(org-level-2 . 1.15)
(org-level-3 . 1.1)
Expand All @@ -679,7 +663,7 @@ Replaces the standard org-mode header asterisks with dots.
(org-level-6 . 1.0)
(org-level-7 . 1.0)
(org-level-8 . 1.0)))
(set-face-attribute (car face) nil :font "SF Pro Display" :weight 'medium :height (cdr face)))
(set-face-attribute (car face) nil :font "Helvetica LT Std" :weight 'medium :height (cdr face)))
#+END_SRC

** Evil mode (Vim)
Expand Down
Loading

0 comments on commit cb752f3

Please sign in to comment.