From a73d529a9426ba82e97b4ba3b8ee92825c30ec89 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Sat, 5 Jun 2021 17:02:23 +0200 Subject: refactor(gs/emacs): Move all org-config into org-config.el For some reason some org config was still living in the global config.el Change-Id: I2145a054ace97b91877a4397a52fd18a5c273434 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3178 Reviewed-by: grfn Tested-by: BuildkiteCI --- users/grfn/emacs.d/config.el | 19 +------------------ users/grfn/emacs.d/org-config.el | 24 +++++++++++++++++++----- 2 files changed, 20 insertions(+), 23 deletions(-) diff --git a/users/grfn/emacs.d/config.el b/users/grfn/emacs.d/config.el index 230211ea2f72..293afa939f24 100644 --- a/users/grfn/emacs.d/config.el +++ b/users/grfn/emacs.d/config.el @@ -353,24 +353,7 @@ (setq evil-shift-width 2)) (after! org - (load! "org-config") - - (set-face-foreground 'org-block +solarized-s-base00) - (add-hook! org-mode - (add-hook! evil-normal-state-entry-hook - #'org-align-all-tags)) - (add-hook 'org-mode-hook (lambda () (display-line-numbers-mode -1))) - (setq whitespace-global-modes '(not org-mode magit-mode vterm-mode)) - (setf (alist-get 'file org-link-frame-setup) 'find-file-other-window) - (set-face-foreground 'org-block +solarized-s-base00) - - ;; (add-hook! org-mode - ;; (set-company-backend! 'org-mode - ;; '(:separate company-ob-postgresql - ;; company-dabbrev - ;; company-yasnippet - ;; company-ispell))) - ) + (load! "org-config")) (after! magit (setq git-commit-summary-max-length 50)) diff --git a/users/grfn/emacs.d/org-config.el b/users/grfn/emacs.d/org-config.el index f2a60d0dc3a2..cee3204760e8 100644 --- a/users/grfn/emacs.d/org-config.el +++ b/users/grfn/emacs.d/org-config.el @@ -122,11 +122,6 @@ org-babel-clojure-backend 'cider) -(defun +grfn/org-setup () - (setq-local truncate-lines -1) - (line-number-mode -1)) - -(add-hook 'org-mode-hook #'+grfn/org-setup) (defun +grfn/insert-work-template () (interactive) @@ -177,3 +172,22 @@ (advice-add #'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) +(set-face-foreground 'org-block +solarized-s-base00) + +;; (add-hook! org-mode +;; (set-company-backend! 'org-mode +;; '(:separate company-ob-postgresql +;; company-dabbrev +;; company-yasnippet +;; company-ispell))) -- cgit 1.4.1