summaryrefslogtreecommitdiff
path: root/init.org
diff options
context:
space:
mode:
Diffstat (limited to 'init.org')
-rw-r--r--init.org6
1 files changed, 3 insertions, 3 deletions
diff --git a/init.org b/init.org
index 043e927..91790f5 100644
--- a/init.org
+++ b/init.org
@@ -592,9 +592,9 @@ When writing Org-mode documents or when browsing the web with Eww I prefer to se
(when (or (eq major-mode 'org-mode)
(eq major-mode 'eww-mode))
(let* ((textwidth 80)
- (margin (max (/ (- (window-size window t) textwidth) 2) 0)))
- (setq left-margin-width margin right-margin-width margin)
- (set-window-buffer nil (current-buffer))))))
+ (margin (max (- (window-size window t) textwidth) 0)))
+ (setq left-margin-width 0 right-margin-width margin)
+ (set-window-buffer window (current-buffer))))))
(defun my/dynamic-margin (frame)
"Dynamically adjust margin for all windows of the frame."