From 2c62fc81abd4f1f13b6f77ad849acfccbee60c06 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 4 Mar 2021 12:07:53 -0600 Subject: [PATCH] Adding Nov, and some org mode tweaks --- README.org | 22 ++++++++++++++++++---- init.el | 18 ++++++++++++++---- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/README.org b/README.org index cca98668..0df5757f 100644 --- a/README.org +++ b/README.org @@ -22,6 +22,7 @@ - [[#magit][Magit]] - [[#eshell][Eshell]] - [[#pdf-tools][PDF-Tools]] + - [[#epub][EPUB]] - [[#window-management][Window Management]] - [[#elfeed][Elfeed]] - [[#garbage-collection][Garbage Collection]] @@ -599,7 +600,8 @@ Part of this config includes some special capture templates for my work as a you :config (setq org-startup-indented t org-edit-src-content-indentation 0 - org-agenda-sticky t) + org-agenda-sticky t + org-fontify-quote-and-verse-blocks t) (add-hook 'org-mode-hook 'chris/org-mode-setup) @@ -690,8 +692,7 @@ Part of this config includes some special capture templates for my work as a you "Remove the org-columns overlay and turn on olivetti-mode" (interactive) (org-columns-quit) - (visual-line-mode +1) - (olivetti-mode +1)) + (chris/org-mode-setup)) (add-hook 'org-agenda-finalize-hook 'evil-normal-state) @@ -707,6 +708,7 @@ Part of this config includes some special capture templates for my work as a you (set-face-attribute `,face nil :inherit 'fixed-pitch)) (set-face-attribute 'org-block-end-line nil :inherit 'org-block-begin-line) + (set-face-attribute 'org-quote nil :background "#242631" :inherit 'fixed-pitch) :general (chris/leader-keys @@ -853,7 +855,11 @@ Org-Superstar makes the stars at the beginning of the line in =org-mode= a lot p :after org :config (org-superstar-mode +1) - (setq org-superstar-headline-bullets-list '("\u25c9" "\u25c8" "\u25b8" "\u25ce" "\u272c" "\u25c7" "\u2749" "\u2719" "\u2756")) + (setq org-superstar-headline-bullets-list '("\u25c9" "\u25c8" "盛" "\u25ce" "\u272c" "\u25c7" "\u2749" "\u2719" "\u2756")) + (setq org-superstar-item-bullet-alist '((?- . ?\u25b8) + (?+ . ?\u2749) + (?* . ?\u25c9))) + (set-face-attribute 'org-superstar-item nil :inherit 'org-level-3) (add-hook 'org-mode-hook 'org-superstar-mode)) #+end_src *** Org DWIM @@ -1282,6 +1288,14 @@ Let's use pdf-tools for a lot better interaction with pdfs. (pdf-tools-install)) #+end_src +** EPUB +#+begin_src emacs-lisp +(use-package nov + :mode ("\\.epub\\'" . nov-mode) + :config + (add-hook 'nov-mode-hook 'olivetti-mode)) +#+end_src + ** Window Management #+begin_src emacs-lisp (setq display-buffer-alist diff --git a/init.el b/init.el index 9fd0db16..6444dbbf 100644 --- a/init.el +++ b/init.el @@ -349,7 +349,8 @@ vertically." :config (setq org-startup-indented t org-edit-src-content-indentation 0 - org-agenda-sticky t) + org-agenda-sticky t + org-fontify-quote-and-verse-blocks t) (add-hook 'org-mode-hook 'chris/org-mode-setup) @@ -440,8 +441,7 @@ vertically." "Remove the org-columns overlay and turn on olivetti-mode" (interactive) (org-columns-quit) - (visual-line-mode +1) - (olivetti-mode +1)) + (chris/org-mode-setup)) (add-hook 'org-agenda-finalize-hook 'evil-normal-state) @@ -457,6 +457,7 @@ vertically." (set-face-attribute `,face nil :inherit 'fixed-pitch)) (set-face-attribute 'org-block-end-line nil :inherit 'org-block-begin-line) + (set-face-attribute 'org-quote nil :background "#242631" :inherit 'fixed-pitch) :general (chris/leader-keys @@ -572,7 +573,11 @@ vertically." :after org :config (org-superstar-mode +1) - (setq org-superstar-headline-bullets-list '("\u25c9" "\u25c8" "\u25b8" "\u25ce" "\u272c" "\u25c7" "\u2749" "\u2719" "\u2756")) + (setq org-superstar-headline-bullets-list '("\u25c9" "\u25c8" "盛" "\u25ce" "\u272c" "\u25c7" "\u2749" "\u2719" "\u2756")) + (setq org-superstar-item-bullet-alist '((?- . ?\u25b8) + (?+ . ?\u2749) + (?* . ?\u25c9))) + (set-face-attribute 'org-superstar-item nil :inherit 'org-level-3) (add-hook 'org-mode-hook 'org-superstar-mode)) (defun chris/org-dwim-at-point (&optional arg) @@ -972,6 +977,11 @@ If on a: :config (pdf-tools-install)) +(use-package nov + :mode ("\\.epub\\'" . nov-mode) + :config + (add-hook 'nov-mode-hook 'olivetti-mode)) + (setq display-buffer-alist '(("\\*e?shell\\*" (display-buffer-in-side-window)