diff options
author | Case Duckworth | 2020-10-26 18:47:17 -0500 |
---|---|---|
committer | Case Duckworth | 2020-10-26 18:47:17 -0500 |
commit | e0349b2479b378be2939e46b5480f521f5aefce0 (patch) | |
tree | 8a657fdd25ab9d438e4999745861e90ab2252bef | |
parent | Add org-mode config (diff) | |
download | emacs-e0349b2479b378be2939e46b5480f521f5aefce0.tar.gz emacs-e0349b2479b378be2939e46b5480f521f5aefce0.zip |
Add visual fill column to org-mode
-rw-r--r-- | config.org | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/config.org b/config.org index 5b4cf03..8d55128 100644 --- a/config.org +++ b/config.org | |||
@@ -561,6 +561,19 @@ I was using company, but I think it might've been causing issues with ~awk-mode~ | |||
561 | ("\\.js\\'" . web-mode))) | 561 | ("\\.js\\'" . web-mode))) |
562 | #+END_SRC | 562 | #+END_SRC |
563 | * Writing | 563 | * Writing |
564 | ** Visual fill column | ||
565 | #+begin_src emacs-lisp | ||
566 | (use-package visual-fill-column | ||
567 | :custom | ||
568 | (split-window-preferred-function 'visual-fill-column-split-window-sensibly) | ||
569 | (visual-fill-column-center-text t) | ||
570 | (fill-column 100) | ||
571 | :config | ||
572 | (advice-add 'text-scale-adjust | ||
573 | :after #'visual-fill-column-adjust) | ||
574 | :hook | ||
575 | (org-mode . visual-fill-column-mode)) | ||
576 | #+end_src | ||
564 | ** Org mode | 577 | ** Org mode |
565 | #+begin_src emacs-lisp | 578 | #+begin_src emacs-lisp |
566 | (use-package org | 579 | (use-package org |
@@ -578,16 +591,7 @@ I was using company, but I think it might've been causing issues with ~awk-mode~ | |||
578 | :hook | 591 | :hook |
579 | (org-mode . org-superstar-mode)) | 592 | (org-mode . org-superstar-mode)) |
580 | #+end_src | 593 | #+end_src |
581 | ** Visual fill column | 594 | |
582 | #+begin_src emacs-lisp | ||
583 | (use-package visual-fill-column | ||
584 | :custom | ||
585 | (split-window-preferred-function 'visual-fill-column-split-window-sensibly) | ||
586 | (visual-fill-column-center-text t) | ||
587 | :config | ||
588 | (advice-add 'text-scale-adjust | ||
589 | :after #'visual-fill-column-adjust)) | ||
590 | #+end_src | ||
591 | * Applications | 595 | * Applications |
592 | ** Gemini & Gopher | 596 | ** Gemini & Gopher |
593 | #+BEGIN_SRC emacs-lisp | 597 | #+BEGIN_SRC emacs-lisp |