Fixing loading order of org, elfeed, mu4e

This commit is contained in:
Chris Cochrun 2021-03-01 06:35:46 -06:00
parent 8f70724127
commit 5abf35e341
2 changed files with 167 additions and 162 deletions

View file

@ -23,8 +23,8 @@
- [[#eshell][Eshell]]
- [[#pdf-tools][PDF-Tools]]
- [[#window-management][Window Management]]
- [[#garbage-collection][Garbage Collection]]
- [[#elfeed][Elfeed]]
- [[#garbage-collection][Garbage Collection]]
- [[#early-init][Early Init]]
* Init
@ -568,6 +568,7 @@ We need a function to copy the full filename to kill-ring
:after dired
:config (diredfl-global-mode +1))
#+end_src
*** Tramp
#+begin_src emacs-lisp
(require 'tramp)
@ -576,6 +577,7 @@ We need a function to copy the full filename to kill-ring
(add-to-list 'tramp-default-proxies-alist
'((regexp-quote (system-name)) nil nil))
#+end_src
** Org Mode
Let's start by creating a self contained function of what I'd like started on every org buffer.
#+begin_src emacs-lisp
@ -584,7 +586,8 @@ Let's start by creating a self contained function of what I'd like started on ev
(org-indent-mode +1)
(toc-org-mode +1)
(olivetti-mode +1)
(display-line-numbers-mode -1))
(display-line-numbers-mode -1)
(variable-pitch-mode +1))
#+end_src
This is the use-package definition with a lot of customization. Need to setup auto tangle and make sure I have some structure templates for org-mode.
@ -691,6 +694,20 @@ Part of this config includes some special capture templates for my work as a you
(olivetti-mode +1))
(add-hook 'org-agenda-finalize-hook 'evil-normal-state)
;;Let's make sure org-mode faces are inheriting fixed pitch faces.
(dolist (face '(org-block
org-block-begin-line
org-block-end-line
org-code
org-document-info-keyword
org-meta-line
org-table
org-verbatim))
(set-face-attribute `,face nil :inherit 'fixed-pitch))
(set-face-attribute 'org-block-end-line nil :inherit 'org-block-begin-line)
:general
(chris/leader-keys
"o a" 'org-agenda
@ -741,21 +758,7 @@ We also need to add =evil-org= to make better keybindings.
:after org)
#+end_src
Let's make sure org-mode faces are inheriting fixed pitch faces.
#+begin_src emacs-lisp
(eval-after-load 'org
(dolist (face '(org-block
org-block-begin-line
org-block-end-line
org-code
org-document-info-keyword
org-meta-line
org-table
org-verbatim))
(set-face-attribute `,face nil :inherit 'fixed-pitch)))
(eval-after-load 'org
(set-face-attribute 'org-block-end-line nil :inherit 'org-block-begin-line))
#+end_src
*** Org-Super-Agenda
Super Agenda gives me a really nice way of making the agenda view look a lot better with some better information included.
#+begin_src emacs-lisp
@ -788,7 +791,7 @@ We also need to setup some capture templates to use some specific setups with my
#+BEGIN_SRC emacs-lisp
(use-package org-roam
:after org
:hook (org-load . org-roam-mode)
:hook org-load
:commands (org-roam org-roam-find-file)
:config
(setq org-roam-directory "~/org")
@ -1288,13 +1291,6 @@ Let's use pdf-tools for a lot better interaction with pdfs.
(side . right))))
#+end_src
** Garbage Collection
We set the =gc-cons-threshold= variable to really high, now lets set it back low to make sure emacs performs properly.
#+begin_src emacs-lisp
(setq gc-cons-threshold 2000000)
#+end_src
** Elfeed
#+begin_src emacs-lisp
(use-package elfeed
@ -1311,6 +1307,13 @@ We set the =gc-cons-threshold= variable to really high, now lets set it back low
(setq rmh-elfeed-org-files (list "~/org/elfeed.org")))
#+end_src
** Garbage Collection
We set the =gc-cons-threshold= variable to really high, now lets set it back low to make sure emacs performs properly.
#+begin_src emacs-lisp
(setq gc-cons-threshold 2000000)
#+end_src
* Early Init
:PROPERTIES:
:header-args: emacs-lisp :tangle early-init.el

36
init.el
View file

@ -341,7 +341,8 @@ vertically."
(org-indent-mode +1)
(toc-org-mode +1)
(olivetti-mode +1)
(display-line-numbers-mode -1))
(display-line-numbers-mode -1)
(variable-pitch-mode +1))
(use-package org
:straight (:type built-in)
@ -443,6 +444,20 @@ vertically."
(olivetti-mode +1))
(add-hook 'org-agenda-finalize-hook 'evil-normal-state)
;;Let's make sure org-mode faces are inheriting fixed pitch faces.
(dolist (face '(org-block
org-block-begin-line
org-block-end-line
org-code
org-document-info-keyword
org-meta-line
org-table
org-verbatim))
(set-face-attribute `,face nil :inherit 'fixed-pitch))
(set-face-attribute 'org-block-end-line nil :inherit 'org-block-begin-line)
:general
(chris/leader-keys
"o a" 'org-agenda
@ -483,19 +498,6 @@ vertically."
(use-package evil-org
:after org)
(eval-after-load 'org
(dolist (face '(org-block
org-block-begin-line
org-block-end-line
org-code
org-document-info-keyword
org-meta-line
org-table
org-verbatim))
(set-face-attribute `,face nil :inherit 'fixed-pitch)))
(eval-after-load 'org
(set-face-attribute 'org-block-end-line nil :inherit 'org-block-begin-line))
(use-package org-super-agenda
:after org-agenda
:init
@ -517,7 +519,7 @@ vertically."
(use-package org-roam
:after org
:hook (org-load . org-roam-mode)
:hook org-load
:commands (org-roam org-roam-find-file)
:config
(setq org-roam-directory "~/org")
@ -976,8 +978,6 @@ If on a:
(window-width . 0.4)
(side . right))))
(setq gc-cons-threshold 2000000)
(use-package elfeed
:commands (elfeed)
:general
@ -988,3 +988,5 @@ If on a:
:after elfeed
:config
(setq rmh-elfeed-org-files (list "~/org/elfeed.org")))
(setq gc-cons-threshold 2000000)