... | @@ -37,7 +37,13 @@ Most of us use Emacs for GHC development. This page lists various Emacs configur |
... | @@ -37,7 +37,13 @@ Most of us use Emacs for GHC development. This page lists various Emacs configur |
|
|
|
|
|
## Highlight trailing whitespaces
|
|
## Highlight trailing whitespaces
|
|
|
|
|
|
*TODO*
|
|
**Description**: See [ (emacs)Useless Whitespace](http://www.gnu.org/software/emacs/manual/html_node/emacs/Useless-Whitespace.html) section for more details.
|
|
|
|
|
|
|
|
**How to enable**:
|
|
|
|
|
|
|
|
```
|
|
|
|
(setq-defaultshow-trailing-whitespacet)(setq-defaultindicate-empty-linest)
|
|
|
|
```
|
|
|
|
|
|
## Automatically removes trailing whitespaces when file is saved
|
|
## Automatically removes trailing whitespaces when file is saved
|
|
|
|
|
... | @@ -49,6 +55,8 @@ Most of us use Emacs for GHC development. This page lists various Emacs configur |
... | @@ -49,6 +55,8 @@ Most of us use Emacs for GHC development. This page lists various Emacs configur |
|
(add-hook'before-save-hook'delete-trailing-whitespace)
|
|
(add-hook'before-save-hook'delete-trailing-whitespace)
|
|
```
|
|
```
|
|
|
|
|
|
|
|
*TODO describe how to enable this setting only if the file was already free of trailing-whitespaces at load-time*
|
|
|
|
|
|
## C-k kills whole line and newline if at beginning of line
|
|
## C-k kills whole line and newline if at beginning of line
|
|
|
|
|
|
**Description**: Allows to avoid typing `C-k` twice when cursor is placed at the beginning of a line.
|
|
**Description**: Allows to avoid typing `C-k` twice when cursor is placed at the beginning of a line.
|
... | | ... | |