|
|
|
|
@@ -28,7 +28,7 @@
|
|
|
|
|
(setq vterm-shell "/bin/zsh")
|
|
|
|
|
|
|
|
|
|
;; Theme & background color
|
|
|
|
|
(load-theme 'doom-earl-grey t)
|
|
|
|
|
(load-theme 'doom-gruvbox t)
|
|
|
|
|
;;(set-face-background 'default "#E8D8B0")
|
|
|
|
|
|
|
|
|
|
;; Lockfiles
|
|
|
|
|
@@ -36,15 +36,26 @@
|
|
|
|
|
|
|
|
|
|
;; Remove line numbers from specific modes
|
|
|
|
|
(dolist (mode '(org-mode-hook
|
|
|
|
|
term-mode-hook
|
|
|
|
|
shell-mode-hook
|
|
|
|
|
eshell-mode-hook))
|
|
|
|
|
(add-hook mode (lambda () (display-line-numbers-mode 0))))
|
|
|
|
|
|
|
|
|
|
;; Font configuration
|
|
|
|
|
(set-face-attribute 'default nil :font "Monospace" :height 170)
|
|
|
|
|
(set-face-attribute 'fixed-pitch nil :font "Monospace" :height 1.0)
|
|
|
|
|
(set-face-attribute 'variable-pitch nil :font "ETBembo" :height 1.0)
|
|
|
|
|
;; Font Config
|
|
|
|
|
(set-face-attribute 'default nil
|
|
|
|
|
:family "Victor Mono"
|
|
|
|
|
:weight 'medium
|
|
|
|
|
:slant 'italic
|
|
|
|
|
:height 170)
|
|
|
|
|
(set-face-attribute 'fixed-pitch nil
|
|
|
|
|
:family "Victor Mono"
|
|
|
|
|
:weight 'medium
|
|
|
|
|
:slant 'italic
|
|
|
|
|
:height 1.0)
|
|
|
|
|
(set-face-attribute 'variable-pitch nil
|
|
|
|
|
:family "Victor Mono"
|
|
|
|
|
:weight 'medium
|
|
|
|
|
:slant 'italic
|
|
|
|
|
:height 1.0)
|
|
|
|
|
|
|
|
|
|
(defun opal/org-font-setup ()
|
|
|
|
|
;; Replace list hyphen with dot
|
|
|
|
|
@@ -52,8 +63,7 @@
|
|
|
|
|
'(("^ *\\([-]\\) "
|
|
|
|
|
(0 (prog1 () (compose-region (match-beginning 1) (match-end 1)
|
|
|
|
|
"•"))))))
|
|
|
|
|
|
|
|
|
|
;; Set faces for heading levels
|
|
|
|
|
;; Set faces for heading levels - all Victor Mono now
|
|
|
|
|
(dolist (face '((org-level-1 . 1.2)
|
|
|
|
|
(org-level-2 . 1.1)
|
|
|
|
|
(org-level-3 . 1.05)
|
|
|
|
|
@@ -62,31 +72,33 @@
|
|
|
|
|
(org-level-6 . 1.1)
|
|
|
|
|
(org-level-7 . 1.1)
|
|
|
|
|
(org-level-8 . 1.1)))
|
|
|
|
|
(set-face-attribute (car face) nil :font "ETBembo" :weight 'regular :height (cdr face)))
|
|
|
|
|
(set-face-attribute (car face) nil
|
|
|
|
|
:family "Victor Mono"
|
|
|
|
|
:weight 'medium
|
|
|
|
|
:slant 'italic
|
|
|
|
|
:height (cdr face)))
|
|
|
|
|
|
|
|
|
|
;; Set properties and scheduling faces to inherit variable-pitch and be smaller
|
|
|
|
|
;; Comment out these lines because mixed-pitch-mode will handle these.
|
|
|
|
|
(set-face-attribute 'org-property-value nil :inherit 'variable-pitch :height 150)
|
|
|
|
|
(set-face-attribute 'org-special-keyword nil :inherit 'variable-pitch :height 150)
|
|
|
|
|
(set-face-attribute 'org-scheduled-today nil :inherit 'variable-pitch :height 150)
|
|
|
|
|
(set-face-attribute 'org-drawer nil :inherit 'variable-pitch :height 150)
|
|
|
|
|
(set-face-attribute 'org-date nil :inherit 'variable-pitch :height 150)
|
|
|
|
|
;; Set properties and scheduling faces
|
|
|
|
|
(set-face-attribute 'org-property-value nil :inherit 'default :height 150)
|
|
|
|
|
(set-face-attribute 'org-special-keyword nil :inherit 'default :height 150)
|
|
|
|
|
(set-face-attribute 'org-scheduled-today nil :inherit 'default :height 150)
|
|
|
|
|
(set-face-attribute 'org-drawer nil :inherit 'default :height 150)
|
|
|
|
|
(set-face-attribute 'org-date nil :inherit 'default :height 150)
|
|
|
|
|
|
|
|
|
|
;; Ensure that all agenda items use fixed-pitch font
|
|
|
|
|
;; Ensure that all agenda items inherit default
|
|
|
|
|
(custom-set-faces
|
|
|
|
|
'(org-agenda-date-today ((t (:inherit fixed-pitch :weight bold))))
|
|
|
|
|
'(org-agenda-date ((t (:inherit fixed-pitch))))
|
|
|
|
|
'(org-agenda-date-weekend ((t (:inherit fixed-pitch :weight bold))))
|
|
|
|
|
'(org-agenda-done ((t (:inherit fixed-pitch :strike-through t))))
|
|
|
|
|
'(org-agenda-dimmed-todo-face ((t (:inherit fixed-pitch))))
|
|
|
|
|
'(org-agenda-structure ((t (:inherit fixed-pitch))))
|
|
|
|
|
'(org-scheduled ((t (:inherit fixed-pitch))))
|
|
|
|
|
'(org-scheduled-today ((t (:inherit fixed-pitch))))
|
|
|
|
|
'(org-scheduled-previously ((t (:inherit fixed-pitch))))
|
|
|
|
|
'(org-upcoming-deadline ((t (:inherit fixed-pitch))))
|
|
|
|
|
'(org-deadline-announce ((t (:inherit fixed-pitch))))
|
|
|
|
|
'(org-time-grid ((t (:inherit fixed-pitch)))))
|
|
|
|
|
)
|
|
|
|
|
'(org-agenda-date-today ((t (:inherit default :weight bold))))
|
|
|
|
|
'(org-agenda-date ((t (:inherit default))))
|
|
|
|
|
'(org-agenda-date-weekend ((t (:inherit default :weight bold))))
|
|
|
|
|
'(org-agenda-done ((t (:inherit default :strike-through t))))
|
|
|
|
|
'(org-agenda-dimmed-todo-face ((t (:inherit default))))
|
|
|
|
|
'(org-agenda-structure ((t (:inherit default))))
|
|
|
|
|
'(org-scheduled ((t (:inherit default))))
|
|
|
|
|
'(org-scheduled-today ((t (:inherit default))))
|
|
|
|
|
'(org-scheduled-previously ((t (:inherit default))))
|
|
|
|
|
'(org-upcoming-deadline ((t (:inherit default))))
|
|
|
|
|
'(org-deadline-announce ((t (:inherit default))))
|
|
|
|
|
'(org-time-grid ((t (:inherit default))))))
|
|
|
|
|
|
|
|
|
|
(defun opal/org-mode-setup ()
|
|
|
|
|
(org-indent-mode)
|
|
|
|
|
|