Explorar el Código

Update nov.el settings and fonts

Colin Powell hace 5 años
padre
commit
fb8ae6d15f

+ 8 - 1
emacs/.config/doom/+nov.el

@@ -1,6 +1,7 @@
 ;;; ~/.dotfiles/emacs/.config/doom/+nov.el -*- lexical-binding: t; -*-
 (require 'justify-kp)
-(setq nov-text-width t)
+;(setq nov-text-width t)
+(setq nov-text-width 80)
 
 (defun my-nov-window-configuration-change-hook ()
   (my-nov-post-html-render-hook)
@@ -27,3 +28,9 @@
 
 (add-hook 'nov-post-html-render-hook 'my-nov-post-html-render-hook)
 (add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode))
+
+(defun my-nov-font-setup ()
+  (face-remap-add-relative 'variable-pitch :family "Liberation Serif"
+                                           :size 20
+                                           :height 1.0))
+(add-hook 'nov-mode-hook 'my-nov-font-setup)

+ 8 - 0
emacs/.config/doom/+ui.el

@@ -1,5 +1,13 @@
 ;;;  -*- lexical-binding: t; -*-
 
+(setq doom-theme 'doom-one)
+
+;; Fonts
+(setq doom-font (font-spec :family "Go Mono" :size 12))
+(setq doom-big-font (font-spec :family "Go Mono" :size 17))
+
+(set-frame-parameter nil 'internal-border-width 15)
+
 ;; setup transparency ... this might get annoying
 (set-frame-parameter (selected-frame) 'alpha '(100 . 90))
 (add-to-list 'default-frame-alist '(alpha . (100 . 90)))

+ 4 - 10
emacs/.config/doom/config.el

@@ -10,13 +10,6 @@
 (setq user-full-name "Colin Powell"
       user-mail-address "colin@onec.me")
 
-(setq doom-theme 'doom-peacock)
-
-;; Fonts
-(setq doom-font (font-spec :family "Go Mono" :size 12))
-(setq doom-big-font (font-spec :family "Go Mono" :size 19))
-
-(set-frame-parameter nil 'internal-border-width 10)
 
 ;;
 ;; Keybinds
@@ -130,8 +123,9 @@
 ;; Handy key definition
 (define-key global-map "\M-z" 'unfill-paragraph)
 
-; add a v
-(nyan-mode)
+; A few nice to haves
+(nyan-mode) ; a rainbow cat, why not
+(beacon-mode) ; show me where my cursor is bouncing around to
 (add-to-list 'auto-mode-alist '("\\.plantuml\\'" . planetuml-mode))
 
 (load! "+ui.el")
@@ -144,7 +138,7 @@
 (load! "+ranger")
 (load! "+mastodon")
 (load! "+wttrin")  ;; Weather config
-;(load! "+elfeed")  ;; This runs a background web process ...
+(load! "+elfeed")  ;; This runs a background web process ...
 
 ;; findout timezone location strings at http://worldtime.io
 (setq display-time-world-list '(("America/Los_Angeles" "San Francisco")

+ 1 - 0
emacs/.config/doom/packages.el

@@ -43,6 +43,7 @@
 (package! org-drill)
 
 ;; handy tools
+(package! beacon)
 (package! nov)
 (package! git-link)
 (package! atomic-chrome)