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]] - [[#magit][Magit]]
- [[#eshell][Eshell]] - [[#eshell][Eshell]]
- [[#pdf-tools][PDF-Tools]] - [[#pdf-tools][PDF-Tools]]
- [[#epub][EPUB]]
- [[#window-management][Window Management]] - [[#window-management][Window Management]]
- [[#elfeed][Elfeed]] - [[#elfeed][Elfeed]]
- [[#garbage-collection][Garbage Collection]] - [[#garbage-collection][Garbage Collection]]
@ -599,7 +600,8 @@ Part of this config includes some special capture templates for my work as a you
:config :config
(setq org-startup-indented t (setq org-startup-indented t
org-edit-src-content-indentation 0 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) (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" "Remove the org-columns overlay and turn on olivetti-mode"
(interactive) (interactive)
(org-columns-quit) (org-columns-quit)
(visual-line-mode +1) (chris/org-mode-setup))
(olivetti-mode +1))
(add-hook 'org-agenda-finalize-hook 'evil-normal-state) (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 `,face nil :inherit 'fixed-pitch))
(set-face-attribute 'org-block-end-line nil :inherit 'org-block-begin-line) (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 :general
(chris/leader-keys (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 :after org
:config :config
(org-superstar-mode +1) (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)) (add-hook 'org-mode-hook 'org-superstar-mode))
#+end_src #+end_src
*** Org DWIM *** Org DWIM
@ -1282,6 +1288,14 @@ Let's use pdf-tools for a lot better interaction with pdfs.
(pdf-tools-install)) (pdf-tools-install))
#+end_src #+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 ** Window Management
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq display-buffer-alist (setq display-buffer-alist

18
init.el
View file

@ -349,7 +349,8 @@ vertically."
:config :config
(setq org-startup-indented t (setq org-startup-indented t
org-edit-src-content-indentation 0 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) (add-hook 'org-mode-hook 'chris/org-mode-setup)
@ -440,8 +441,7 @@ vertically."
"Remove the org-columns overlay and turn on olivetti-mode" "Remove the org-columns overlay and turn on olivetti-mode"
(interactive) (interactive)
(org-columns-quit) (org-columns-quit)
(visual-line-mode +1) (chris/org-mode-setup))
(olivetti-mode +1))
(add-hook 'org-agenda-finalize-hook 'evil-normal-state) (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 `,face nil :inherit 'fixed-pitch))
(set-face-attribute 'org-block-end-line nil :inherit 'org-block-begin-line) (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 :general
(chris/leader-keys (chris/leader-keys
@ -572,7 +573,11 @@ vertically."
:after org :after org
:config :config
(org-superstar-mode +1) (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)) (add-hook 'org-mode-hook 'org-superstar-mode))
(defun chris/org-dwim-at-point (&optional arg) (defun chris/org-dwim-at-point (&optional arg)
@ -972,6 +977,11 @@ If on a:
:config :config
(pdf-tools-install)) (pdf-tools-install))
(use-package nov
:mode ("\\.epub\\'" . nov-mode)
:config
(add-hook 'nov-mode-hook 'olivetti-mode))
(setq display-buffer-alist (setq display-buffer-alist
'(("\\*e?shell\\*" '(("\\*e?shell\\*"
(display-buffer-in-side-window) (display-buffer-in-side-window)