Move org-modern hooks to use-package block

Ensure direnv and treesit-auto
This commit is contained in:
Evie Litherland-Smith 2023-11-10 07:21:46 +00:00
parent 8c15ff8959
commit 1a65f52bef
2 changed files with 12 additions and 4 deletions

View file

@ -271,8 +271,10 @@
(keymap-global-set "C-c o j n" #'org-journal-new-date-entry)
(keymap-global-set "C-c o j s" #'org-journal-new-scheduled-entry)
(add-hook 'org-mode-hook #'org-modern-mode)
(add-hook 'org-agenda-finalize-hook #'org-modern-agenda)
(use-package org-modern
:ensure t
:hook ((org-mode . org-modern-mode)
(org-agenda-finalize . org-modern-agenda)))
(setq org-agenda-span 'week
org-agenda-start-on-weekday 1
@ -376,10 +378,12 @@
(ibuffer-do-sort-by-project-file-relative))))))
(use-package treesit-auto
:ensure t
:config (global-treesit-auto-mode +1))
(setq direnv-always-show-summary nil)
(use-package direnv
:ensure t
:config (direnv-mode +1))
(when (require 'eglot nil :noerror)

View file

@ -312,8 +312,10 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
(keymap-global-set "C-c o j n" #'org-journal-new-date-entry)
(keymap-global-set "C-c o j s" #'org-journal-new-scheduled-entry)
(add-hook 'org-mode-hook #'org-modern-mode)
(add-hook 'org-agenda-finalize-hook #'org-modern-agenda)
(use-package org-modern
:ensure t
:hook ((org-mode . org-modern-mode)
(org-agenda-finalize . org-modern-agenda)))
#+end_src
** org-agenda
@ -437,10 +439,12 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
(ibuffer-do-sort-by-project-file-relative))))))
(use-package treesit-auto
:ensure t
:config (global-treesit-auto-mode +1))
(setq direnv-always-show-summary nil)
(use-package direnv
:ensure t
:config (direnv-mode +1))
#+END_SRC