Compare commits

...

2 commits

Author SHA1 Message Date
xeruf
75a0bd7fa9 config/jrnl: convert to template 2022-11-29 23:28:20 +01:00
xeruf
b48f70201a config/doom: add theming 2022-11-29 23:20:54 +01:00
7 changed files with 77 additions and 25 deletions

View file

@ -1,27 +1,5 @@
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*- ;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
;;;; VISUALS
;; Doom exposes five (optional) variables for controlling fonts in Doom. Here
;; are the three important ones:
;;
;; + `doom-font'
;; + `doom-variable-pitch-font'
;; + `doom-big-font' -- used for `doom-big-font-mode'; use this for
;; presentations or streaming.
;;
;; They all accept either a font-spec, font string ("Input Mono-12"), or xlfd
;; font string. You generally only need these two:
;; (setq doom-font (font-spec :family "monospace" :size 12 :weight 'semi-light)
;; doom-variable-pitch-font (font-spec :family "sans" :size 13))
;; There are two ways to load a theme. Both assume the theme is installed and
;; available. You can either set `doom-theme' or manually load a theme with the
;; `load-theme' function. This is the default:
(setq doom-theme (if (equal (getenv "THEME") "light") 'doom-opera-light 'doom-one)
doom-font (font-spec :family "monospace" :size 24 :weight 'semi-light)
doom-variable-pitch-font (font-spec :family "sans" :size 24))
(defun load-theme-string (theme) (defun load-theme-string (theme)
(if (-contains? (custom-available-themes) (intern theme)) (load-theme (intern theme)))) (if (-contains? (custom-available-themes) (intern theme)) (load-theme (intern theme))))
(defun toggle-theme (&optional suffix) (defun toggle-theme (&optional suffix)
@ -221,6 +199,7 @@ Version 2019-11-04 2021-02-16"
(load! "./user.el" nil t) (load! "./user.el" nil t)
(load! "./local.el" nil t) (load! "./local.el" nil t)
(load! "./theme.el" nil t)
(setq backup-directory-alist (list (cons "." (concat doom-cache-dir "backup/"))) (setq backup-directory-alist (list (cons "." (concat doom-cache-dir "backup/")))
custom-emacs-data-dir (expand-file-name "data" doom-private-dir)) custom-emacs-data-dir (expand-file-name "data" doom-private-dir))
@ -926,8 +905,13 @@ Version 2019-11-04 2021-02-16"
plantuml-indent-level 4 plantuml-indent-level 4
) )
(after! org (after! org
(org-babel-do-load-languages 'org-babel-load-languages '((plantuml . t))) (org-babel-do-load-languages 'org-babel-load-languages
'((plantuml . t)))
) )
(add-hook 'plantuml-mode-hook
(lambda () (setq-local compile-command (format "plantuml %s" (shell-quote-argument buffer-file-name)))))
) )
(use-package vc-fossil (use-package vc-fossil

1
.config/doom/theme.el Symbolic link
View file

@ -0,0 +1 @@
theme.el##default

View file

@ -0,0 +1,24 @@
;;; theme.el -*- lexical-binding: t; -*-
;;;; VISUALS
;; Doom exposes five (optional) variables for controlling fonts in Doom. Here
;; are the three important ones:
;;
;; + `doom-font'
;; + `doom-variable-pitch-font'
;; + `doom-big-font' -- used for `doom-big-font-mode'; use this for
;; presentations or streaming.
;;
;; They all accept either a font-spec, font string ("Input Mono-12"), or xlfd
;; font string. You generally only need these two:
;; (setq doom-font (font-spec :family "monospace" :size 12 :weight 'semi-light)
;; doom-variable-pitch-font (font-spec :family "sans" :size 13))
;; There are two ways to load a theme. Both assume the theme is installed and
;; available. You can either set `doom-theme' or manually load a theme with the
;; `load-theme' function. This is the default:
(setq doom-theme (if (equal (getenv "THEME") "light") 'doom-opera-light 'doom-one)
doom-font (font-spec :family "monospace" :size 16 :weight 'semi-light)
doom-variable-pitch-font (font-spec :family "sans" :size 16))

View file

@ -0,0 +1,23 @@
;;; theme.el -*- lexical-binding: t; -*-
;;;; VISUALS
;; Doom exposes five (optional) variables for controlling fonts in Doom. Here
;; are the three important ones:
;;
;; + `doom-font'
;; + `doom-variable-pitch-font'
;; + `doom-big-font' -- used for `doom-big-font-mode'; use this for
;; presentations or streaming.
;;
;; They all accept either a font-spec, font string ("Input Mono-12"), or xlfd
;; font string. You generally only need these two:
;; (setq doom-font (font-spec :family "monospace" :size 12 :weight 'semi-light)
;; doom-variable-pitch-font (font-spec :family "sans" :size 13))
;; There are two ways to load a theme. Both assume the theme is installed and
;; available. You can either set `doom-theme' or manually load a theme with the
;; `load-theme' function. This is the default:
(setq doom-theme (if (equal (getenv "THEME") "light") 'doom-opera-light 'doom-one)
doom-font (font-spec :family "monospace" :size 24 :weight 'semi-light)
doom-variable-pitch-font (font-spec :family "sans" :size 24))

View file

@ -0,0 +1 @@
user.el##user.janek

View file

@ -5,14 +5,13 @@ colors:
title: blue title: blue
default_hour: 0 default_hour: 0
default_minute: 0 default_minute: 0
editor: /home/janek/.local/bin/scripts/emacstty +99999 editor: /home/janekf/.local/bin/scripts/emacstty +99999
encrypt: false encrypt: false
highlight: true highlight: true
indent_character: '|' indent_character: '|'
journals: journals:
default: ~/data/2-box/journal/jrnl.txt default: ~/data/2-box/journal/jrnl.txt
intentions: ~/data/2-box/journal/intentions.txt intentions: ~/data/2-box/journal/intentions.txt
intentions-nug: ~/data/2-box/journal/intentions-nug.txt
nug: ~/data/2-box/journal/nugnug.txt nug: ~/data/2-box/journal/nugnug.txt
linewrap: 99 linewrap: 99
tagsymbols: '@' tagsymbols: '@'

View file

@ -0,0 +1,20 @@
colors:
body: none
date: green
tags: yellow
title: blue
default_hour: 0
default_minute: 0
editor: {{ env.HOME }}/.local/bin/scripts/emacstty +99999
encrypt: false
highlight: true
indent_character: '|'
journals:
default: ~/data/2-box/journal/jrnl.txt
intentions: ~/data/2-box/journal/intentions.txt
nug: ~/data/2-box/journal/nugnug.txt
linewrap: 99
tagsymbols: '@'
template: false
timeformat: '%Y-%m-%d %a %H:%M'
version: v2.8.4