From 67f9a83aa62be74bd46fd08abf8c86491a298ac2 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Mon, 11 Jul 2022 10:30:17 -0400 Subject: fix(grfn/emacs): Add org-mode setup hook before loading agenda files Change-Id: I6f5c05e7dd8d7a2ce09965009a2dae213c9a92e6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5936 Tested-by: BuildkiteCI Reviewed-by: grfn Autosubmit: grfn --- users/grfn/emacs.d/org-config.el | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'users') 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) -- cgit 1.4.1