Add SPC t C-f toggle for auto-fill-mode, set default fill column to 78
Instead of 70
This commit is contained in:
parent
f79fa6c49b
commit
035ff5af74
|
@ -780,6 +780,7 @@ Some graphical UI indicators can be toggled on and off (toggles start with `t`):
|
|||
<kbd>SPC t 8</kbd> | display a mark on the 80th column
|
||||
<kbd>SPC t F</kbd> | toggle frame fullscreen
|
||||
<kbd>SPC t f</kbd> | toggle display of the fringe
|
||||
<kbd>SPC t C-f</kbd> | toggle auto fill mode (break lines beyond `current-fill-column`)
|
||||
<kbd>SPC t h</kbd> | toggle highlight of the current line
|
||||
<kbd>SPC t i</kbd> | toggle aggressive indent
|
||||
<kbd>SPC t l</kbd> | toggle truncate lines
|
||||
|
@ -912,6 +913,7 @@ display ASCII characters instead (may be useful in terminal).
|
|||
`Ⓒ` | C | [centered-cursor][centered-cursor] mode
|
||||
`Ⓔ` | E | [evil-org][evil-org-mode] mode
|
||||
`Ⓕ` | F | flycheck mode
|
||||
`ⓕ` | f | auto-fill mode
|
||||
`Ⓚ` | K | guide-key mode
|
||||
`Ⓘ` | I | aggressive indent mode
|
||||
`(Ⓟ)` | (P) | paredit mode
|
||||
|
|
|
@ -132,6 +132,10 @@ Can be installed with `brew install trash'."
|
|||
;; regular move to trash directory
|
||||
(setq trash-directory "~/.Trash/emacs")))
|
||||
|
||||
;; auto fill breaks line beyond current-fill-column
|
||||
(setq-default default-fill-column 78)
|
||||
(spacemacs|diminish auto-fill-function " ⓕ" " f")
|
||||
|
||||
;; ---------------------------------------------------------------------------
|
||||
;; UI
|
||||
;; ---------------------------------------------------------------------------
|
||||
|
|
|
@ -180,6 +180,12 @@
|
|||
:on (toggle-transparency)
|
||||
:documentation "Make the current frame non-opaque."
|
||||
:evil-leader "tt")
|
||||
(spacemacs|add-toggle auto-fill-mode
|
||||
:status auto-fill-function
|
||||
:on (auto-fill-mode)
|
||||
:off (auto-fill-mode -1)
|
||||
:documentation "Break line beyond `current-fill-column` while editing."
|
||||
:evil-leader "t C-f")
|
||||
(spacemacs|add-toggle tool-bar
|
||||
:if window-system
|
||||
:status tool-bar-mode
|
||||
|
|
Loading…
Reference in a new issue