Performance and startup tweaks

This commit is contained in:
Chris Cochrun 2021-04-13 06:03:44 -05:00
parent 3bb5e9ff23
commit d35bd8133a
2 changed files with 21 additions and 24 deletions

View file

@ -343,9 +343,8 @@ This evil-collection package includes a lot of other evil based things.
** Better UI ** Better UI
*** Olivetti *** Olivetti
#+begin_src emacs-lisp #+begin_src emacs-lisp :tangle no
(use-package olivetti (use-package olivetti
:after org
:config :config
(setq olivetti-body-width 0.6 (setq olivetti-body-width 0.6
olivetti-minimum-body-width 100)) olivetti-minimum-body-width 100))
@ -552,8 +551,9 @@ These are some evil bindings to avy.
(general-define-key (general-define-key
:states 'normal :states 'normal
:keymaps '(override magit-mode-map) :keymaps '(override magit-mode-map)
"F" 'magit-pull)) "F" 'magit-pull)
(general-def 'normal
"gl" 'avy-goto-line))
#+end_src #+end_src
*** Ace-Link *** Ace-Link
Ace link provides an avy like search for links. Upon using the keybindings presented it opens the url. Ace link provides an avy like search for links. Upon using the keybindings presented it opens the url.
@ -590,7 +590,8 @@ Friar is a fennel repl in the awesome repl. It allows you to interact with Aweso
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package friar (use-package friar
:straight (:host github :repo "warreq/friar" :branch "master" :straight (:host github :repo "warreq/friar" :branch "master"
:files (:defaults "*.lua" "*.fnl"))) :files (:defaults "*.lua" "*.fnl"))
:after fennel-mode)
#+end_src #+end_src
*** Yaml *** Yaml
@ -730,6 +731,7 @@ This is the use-package definition with a lot of customization. Need to setup au
Part of this config includes some special capture templates for my work as a youth minister. I create lessons through both org-mode and org-roam capture templates. The first part comes from org-roam, then the next is org-mode. Part of this config includes some special capture templates for my work as a youth minister. I create lessons through both org-mode and org-roam capture templates. The first part comes from org-roam, then the next is org-mode.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package org (use-package org
:defer 1
:config :config
(setq org-startup-indented t (setq org-startup-indented t
org-edit-src-content-indentation 0 org-edit-src-content-indentation 0
@ -918,7 +920,7 @@ We also need to add =evil-org= to make better keybindings.
Super Agenda gives me a really nice way of making the agenda view look a lot better with some better information included. 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 #+begin_src emacs-lisp
(use-package org-super-agenda (use-package org-super-agenda
:after org-agenda :after org
:init :init
(setq org-super-agenda-groups '((:name "Today" (setq org-super-agenda-groups '((:name "Today"
:time-grid t :time-grid t
@ -946,8 +948,7 @@ We also need to setup some capture templates to use some specific setups with my
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package org-roam (use-package org-roam
:after org :after org
:hook org-load :commands (org-roam org-roam-find-file org-roam-insert)
:commands (org-roam org-roam-find-file)
:config :config
(setq org-roam-directory "~/org") (setq org-roam-directory "~/org")
(setq org-roam-buffer-width 0.25) (setq org-roam-buffer-width 0.25)
@ -1313,10 +1314,12 @@ If on a:
:keymaps 'override :keymaps 'override
"om" 'mu4e)) "om" 'mu4e))
(use-package org-mime
:ensure t)
#+end_src #+end_src
# (use-package org-mime
# :after
# :ensure t)
Let's add org-msg to write emails in org-mode Let's add org-msg to write emails in org-mode
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package org-msg (use-package org-msg

22
init.el
View file

@ -228,12 +228,6 @@
"j" 'undo-tree-visualize-redo "j" 'undo-tree-visualize-redo
"k" 'undo-tree-visualize-undo)) "k" 'undo-tree-visualize-undo))
(use-package olivetti
:after org
:config
(setq olivetti-body-width 0.6
olivetti-minimum-body-width 100))
(use-package visual-fill-column (use-package visual-fill-column
:after org :after org
:config :config
@ -333,7 +327,9 @@ vertically."
(general-define-key (general-define-key
:states 'normal :states 'normal
:keymaps '(override magit-mode-map) :keymaps '(override magit-mode-map)
"F" 'magit-pull)) "F" 'magit-pull)
(general-def 'normal
"gl" 'avy-goto-line))
(use-package ace-link (use-package ace-link
:after avy) :after avy)
@ -352,7 +348,8 @@ vertically."
(use-package friar (use-package friar
:straight (:host github :repo "warreq/friar" :branch "master" :straight (:host github :repo "warreq/friar" :branch "master"
:files (:defaults "*.lua" "*.fnl"))) :files (:defaults "*.lua" "*.fnl"))
:after fennel-mode)
(use-package yaml-mode (use-package yaml-mode
:mode ("\\.yml\\'" . yaml-mode)) :mode ("\\.yml\\'" . yaml-mode))
@ -440,6 +437,7 @@ vertically."
visual-fill-column-center-text t)) visual-fill-column-center-text t))
(use-package org (use-package org
:defer 1
:config :config
(setq org-startup-indented t (setq org-startup-indented t
org-edit-src-content-indentation 0 org-edit-src-content-indentation 0
@ -614,7 +612,7 @@ vertically."
:after org) :after org)
(use-package org-super-agenda (use-package org-super-agenda
:after org-agenda :after org
:init :init
(setq org-super-agenda-groups '((:name "Today" (setq org-super-agenda-groups '((:name "Today"
:time-grid t :time-grid t
@ -634,8 +632,7 @@ vertically."
(use-package org-roam (use-package org-roam
:after org :after org
:hook org-load :commands (org-roam org-roam-find-file org-roam-insert)
:commands (org-roam org-roam-find-file)
:config :config
(setq org-roam-directory "~/org") (setq org-roam-directory "~/org")
(setq org-roam-buffer-width 0.25) (setq org-roam-buffer-width 0.25)
@ -987,9 +984,6 @@ If on a:
:keymaps 'override :keymaps 'override
"om" 'mu4e)) "om" 'mu4e))
(use-package org-mime
:ensure t)
(use-package org-msg (use-package org-msg
:hook (mu4e-compose-mode . org-msg-edit-mode) :hook (mu4e-compose-mode . org-msg-edit-mode)
:config :config