about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-11-02T19·04-0500
committerglittershark <grfn@gws.fyi>2020-11-04T15·29+0000
commitb8c50979ddffb6b81c8bf44749603cdc77c1e0c9 (patch)
tree71dc7d84c4c98f6e8221aa6c074e32294659835f /users
parentac5ba13dceb63ab63fc0dd329cdfead90afdaa9d (diff)
feat(gs/emacs): Disable truncate-lines in org mode r/1868
Change-Id: Ie1a539d894ae6223196f9e5b912317a00716ba72
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2067
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'users')
-rw-r--r--users/glittershark/emacs.d/config.el13
-rw-r--r--users/glittershark/emacs.d/org-config.el6
2 files changed, 13 insertions, 6 deletions
diff --git a/users/glittershark/emacs.d/config.el b/users/glittershark/emacs.d/config.el
index 532579b52c3f..504648eb7be9 100644
--- a/users/glittershark/emacs.d/config.el
+++ b/users/glittershark/emacs.d/config.el
@@ -391,12 +391,13 @@
   (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))))
+  ;; (add-hook! org-mode
+  ;;   (set-company-backend! 'org-mode
+  ;;     '(:separate company-ob-postgresql
+  ;;                 company-dabbrev
+  ;;                 company-yasnippet
+  ;;                 company-ispell)))
+  )
 
 (after! magit
   (setq git-commit-summary-max-length 50))
diff --git a/users/glittershark/emacs.d/org-config.el b/users/glittershark/emacs.d/org-config.el
index 9ca5746ed8a7..59953dfeaaa0 100644
--- a/users/glittershark/emacs.d/org-config.el
+++ b/users/glittershark/emacs.d/org-config.el
@@ -123,6 +123,12 @@
 
  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)
   (goto-char (point-min))