aboutsummaryrefslogtreecommitdiff
path: root/.emacs.local.d/modes/writeroom.el
blob: 1f86fc0d6471bc2edcad541baebd4de77df945db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
(use-package writeroom-mode
  :defer t
  :config
  (setq writeroom-width 140
        writeroom-mode-line 't
        writeroom-global-effects '(writeroom-set-bottom-divider-width
                                   writeroom-set-internal-border-width
                                   (lambda (arg)
                                     (let ((langs '("python"
                                                    "emacs-lisp"
                                                    "common-lisp"
                                                    "js"
                                                    "ruby")))
                                       (cond
                                        ((= arg 1)
                                         (progn
                                           (setq org-src-block-faces
                                                 (mapcar (lambda (lang) (list lang '(:family "Source Code Pro" :height 0.8))) langs))
                                           (normal-mode)
                                           (variable-pitch-mode)))
                                        ((= arg -1)
                                         (progn
                                           (setq org-src-block-faces
                                                 (mapcar (lambda (lang) (list lang '(:family "Source Code Pro" :height 1.0))) langs))
                                           (normal-mode)
                                           (variable-pitch-mode)
                                           (variable-pitch-mode)))))))))

(use-package olivetti
  :defer t
  :config
  (setq
   olivetti-body-width 100
  ))
nihil fit ex nihilo