config.org 2.4 KB

Note : This is going to be merged with my Ducktato's configuration. Don't expect a lot of literacy rigt now

Look and Feel

Theme

(setq doom-theme 'doom-gruvbox)

Fonts

(setq base-size 12)
(setq doom-font (font-spec :family "PragmataPro Mono Liga" :size base-size)
      doom-variable-pitch-font (font-spec :family "PragmataPro Liga" :size base-size)
      doom-big-font (font-spec :family "PragmataPro Mono Liga" :size (* base-size 2)))

Tweaks

Gruvbox and Solaire-mode

\[T]/

This is an attempt at hacking +doom-solaire-themes to add Gruvbox as a working theme as the original theme has multiple background options. Sadly, I can't make it work yet on Windows for some reason, solaire doesn't just do its background swap when swapping buffers. So it'll be commented out until I see if it somehow works.

;; (setq +doom-solaire-themes (append +doom-solaire-themes
;;                                    '((doom-gruvbox . t))))

Functions

Blog helpers

TODO Draft list

Org mode is awesome, that's a fact. I tried to look into making org my blog framework/builder but I couldn't. I switched to Hugo and reconverted my blog files into Markdown.

Hugo has a few utilities, notably listing draft posts. I wrote a while ago a function to list drafts and feed them to helm. Doom Emacs seems to use ivy as file browser, so I have to adapt it to feed Ivy.

;; (defun chicken/list-hugo-drafts()
;;   (interactive)
;;   (let* ((default-directory (projectile-project-root))
;;          (selected-file (helm
;;                          :sources
;;                          (helm-build-async-source
;;                           "Draft blog posts"
;;                           :candidates-process (lambda ()
;;                                                 (start-process
;;                                                  "hugo"
;;                                                  nil
;;                                                  "hugo"
;;                                                  "list"
;;                                                  "drafts")))
;;                          :buffer
;;                          "*helm hugo drafts*")))
;;     (when selected-file
;;       (find-file (concat default-directory selected-file)))))