diff options
author | Griffin Smith <grfn@gws.fyi> | 2022-07-11T14·30-0400 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-07-11T14·44+0000 |
commit | 67f9a83aa62be74bd46fd08abf8c86491a298ac2 (patch) | |
tree | e1cc22b5bc07130d32c791370061c829dfd5ab83 /users/grfn/emacs.d/org-config.el | |
parent | 539d69f565f0f3ada8a08ebc5a199b97dbc89b73 (diff) |
fix(grfn/emacs): Add org-mode setup hook before loading agenda files r/4287
Change-Id: I6f5c05e7dd8d7a2ce09965009a2dae213c9a92e6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5936 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi> Autosubmit: grfn <grfn@gws.fyi>
Diffstat (limited to 'users/grfn/emacs.d/org-config.el')
-rw-r--r-- | users/grfn/emacs.d/org-config.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/users/grfn/emacs.d/org-config.el b/users/grfn/emacs.d/org-config.el index 81fb35a1cbda..b36628ab03f0 100644 --- a/users/grfn/emacs.d/org-config.el +++ b/users/grfn/emacs.d/org-config.el @@ -1,5 +1,12 @@ ;;; -*- lexical-binding: t; -*- +(defun +grfn/org-setup () + (setq-local truncate-lines -1) + (display-line-numbers-mode -1) + (line-number-mode -1)) + +(add-hook 'org-mode-hook #'+grfn/org-setup) + (defun notes-file (f) (concat org-directory (if (string-prefix-p "/" f) "" "/") f)) @@ -173,13 +180,6 @@ #'forge--post-submit-callback :around #'forge--post-submit-around---link-pr-to-org-item) -(defun +grfn/org-setup () - (setq-local truncate-lines -1) - (display-line-numbers-mode -1) - (line-number-mode -1)) - -(add-hook 'org-mode-hook #'+grfn/org-setup) - (set-face-foreground 'org-block +solarized-s-base00) (setq whitespace-global-modes '(not org-mode magit-mode vterm-mode)) (setf (alist-get 'file org-link-frame-setup) 'find-file-other-window) |