about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2021-06-05T15·02+0200
committergrfn <grfn@gws.fyi>2021-06-05T15·25+0000
commita73d529a9426ba82e97b4ba3b8ee92825c30ec89 (patch)
treeec42b106bb9e5678c62be05a79da95f54c160dce /users
parente38e826862beb732721b80e3fbfa02da1fab9138 (diff)
refactor(gs/emacs): Move all org-config into org-config.el r/2644
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 <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'users')
-rw-r--r--users/grfn/emacs.d/config.el19
-rw-r--r--users/grfn/emacs.d/org-config.el24
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)))