Skip to content

Commit

Permalink
fix(+writing-mode): don't suppose Org to be loaded (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jul 17, 2023
1 parent 04590b6 commit 6bedf30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/extras/me-writing-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@
(when (and mixed-pitch-mode-p (bound-and-true-p display-line-numbers-mode))
(setq-local +writing--line-nums-active-p display-line-numbers-type)
(display-line-numbers-mode -1))
(+writing--scale-up-org-latex)
(when (derived-mode-p 'org-mode) (+writing--scale-up-org-latex))
(run-hooks +writing-mode-enable-hook))
;; Disable
(kill-local-variable 'visual-fill-column-center-text)
(kill-local-variable 'visual-fill-column-width)
(+writing--scale-down-org-latex)
(when (derived-mode-p 'org-mode) (+writing--scale-down-org-latex))
(when (and +writing--line-nums-active-p mixed-pitch-mode-p)
(display-line-numbers-mode +writing--line-nums-active-p)))

Expand Down

0 comments on commit 6bedf30

Please sign in to comment.