Skip to content

Commit

Permalink
Update FAQ.
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Jun 16, 2022
1 parent c0a3b9f commit 0d62209
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,35 +424,41 @@ Run `M-x customize-group RET doom-modeline RET` or set the variables.
(add-hook 'doom-modeline-mode-hook 'setup-custom-doom-modeline)
```

1. How to specify font family in modeline?
1. How to specify font family and size in modeline?

For example:

```emacs-lisp
(setq doom-modeline-height 1)
(set-face-attribute 'doom-modeline nil :family "Noto Sans" :height 100)
(set-face-attribute 'doom-modeline-inactive nil :family "Noto Sans" :height 100)
(setq doom-modeline-height 1) ; optional
(set-face-attribute 'mode-line nil :family "Noto Sans" :height 100)
(set-face-attribute 'mode-line-inactive nil :family "Noto Sans" :height 100)
```

or

```emacs-lisp
(setq doom-modeline-height 1) ; optional
(custom-set-faces
'(doom-modeline ((t (:family "Noto Sans" :height 0.9))))
'(doom-modeline-inactive ((t (:family "Noto Sans" :height 0.9)))))
'(mode-line ((t (:family "Noto Sans" :height 0.9))))
'(mode-line-inactive ((t (:family "Noto Sans" :height 0.9)))))
```

Please refer to
[#189](https://github.com/seagle0128/doom-modeline/issues/189) and
[#301](https://github.com/seagle0128/doom-modeline/issues/301).

1. The right side of the modeline is cut off. How to fix it?

- Tweak `all-the-icons-scale-factor`. e.g. `(setq all-the-icons-scale-factor 1.1)`
- Use another font family or size. See above.

1. How to disable symbolic links expanding in mode-line?

If you encounter the issue like this

![Screenshot](https://user-images.githubusercontent.com/9449246/62822565-c3f93380-bb74-11e9-95f6-f9c24a6cbd14.png)

please try this setting
please try this:

```elisp
;; built-in `project' on 26+
Expand Down

0 comments on commit 0d62209

Please sign in to comment.