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 <grfn@gws.fyi> Autosubmit: grfn <grfn@gws.fyi>
This commit is contained in:
parent
539d69f565
commit
67f9a83aa6
1 changed files with 7 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue