Update nov.el settings and fonts
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
;;; ~/.dotfiles/emacs/.config/doom/+nov.el -*- lexical-binding: t; -*-
|
;;; ~/.dotfiles/emacs/.config/doom/+nov.el -*- lexical-binding: t; -*-
|
||||||
(require 'justify-kp)
|
(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 ()
|
(defun my-nov-window-configuration-change-hook ()
|
||||||
(my-nov-post-html-render-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-hook 'nov-post-html-render-hook 'my-nov-post-html-render-hook)
|
||||||
(add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode))
|
(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)
|
||||||
|
|||||||
@ -1,5 +1,13 @@
|
|||||||
;;; -*- lexical-binding: t; -*-
|
;;; -*- 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
|
;; setup transparency ... this might get annoying
|
||||||
(set-frame-parameter (selected-frame) 'alpha '(100 . 90))
|
(set-frame-parameter (selected-frame) 'alpha '(100 . 90))
|
||||||
(add-to-list 'default-frame-alist '(alpha . (100 . 90)))
|
(add-to-list 'default-frame-alist '(alpha . (100 . 90)))
|
||||||
|
|||||||
@ -10,13 +10,6 @@
|
|||||||
(setq user-full-name "Colin Powell"
|
(setq user-full-name "Colin Powell"
|
||||||
user-mail-address "colin@onec.me")
|
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
|
;; Keybinds
|
||||||
@ -130,8 +123,9 @@
|
|||||||
;; Handy key definition
|
;; Handy key definition
|
||||||
(define-key global-map "\M-z" 'unfill-paragraph)
|
(define-key global-map "\M-z" 'unfill-paragraph)
|
||||||
|
|
||||||
; add a v
|
; A few nice to haves
|
||||||
(nyan-mode)
|
(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))
|
(add-to-list 'auto-mode-alist '("\\.plantuml\\'" . planetuml-mode))
|
||||||
|
|
||||||
(load! "+ui.el")
|
(load! "+ui.el")
|
||||||
@ -144,7 +138,7 @@
|
|||||||
(load! "+ranger")
|
(load! "+ranger")
|
||||||
(load! "+mastodon")
|
(load! "+mastodon")
|
||||||
(load! "+wttrin") ;; Weather config
|
(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
|
;; findout timezone location strings at http://worldtime.io
|
||||||
(setq display-time-world-list '(("America/Los_Angeles" "San Francisco")
|
(setq display-time-world-list '(("America/Los_Angeles" "San Francisco")
|
||||||
|
|||||||
@ -43,6 +43,7 @@
|
|||||||
(package! org-drill)
|
(package! org-drill)
|
||||||
|
|
||||||
;; handy tools
|
;; handy tools
|
||||||
|
(package! beacon)
|
||||||
(package! nov)
|
(package! nov)
|
||||||
(package! git-link)
|
(package! git-link)
|
||||||
(package! atomic-chrome)
|
(package! atomic-chrome)
|
||||||
|
|||||||
Reference in New Issue
Block a user