Adding Nov, and some org mode tweaks

This commit is contained in:
Chris Cochrun 2021-03-04 12:07:53 -06:00
parent 5abf35e341
commit 2c62fc81ab
2 changed files with 32 additions and 8 deletions

View file

@ -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

18
init.el
View file

@ -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)