about summary refs log tree commit diff
path: root/users/grfn/emacs.d/org-config.el
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/grfn/emacs.d/org-config.el
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/grfn/emacs.d/org-config.el')
-rw-r--r--users/grfn/emacs.d/org-config.el24
1 files changed, 19 insertions, 5 deletions
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)))