... | @@ -45,6 +45,8 @@ Most of us use Emacs for GHC development. This page lists various Emacs configur |
... | @@ -45,6 +45,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*
|
|
|
|
|
|
## Highlight trailing whitespaces
|
|
## Highlight trailing whitespaces
|
|
|
|
|
|
**Description**: See [ (emacs)Useless Whitespace](http://www.gnu.org/software/emacs/manual/html_node/emacs/Useless-Whitespace.html) section for more details.
|
|
**Description**: See [ (emacs)Useless Whitespace](http://www.gnu.org/software/emacs/manual/html_node/emacs/Useless-Whitespace.html) section for more details.
|
... | @@ -55,8 +57,6 @@ Most of us use Emacs for GHC development. This page lists various Emacs configur |
... | @@ -55,8 +57,6 @@ Most of us use Emacs for GHC development. This page lists various Emacs configur |
|
(setq-defaultshow-trailing-whitespacet)(setq-defaultindicate-empty-linest)
|
|
(setq-defaultshow-trailing-whitespacet)(setq-defaultindicate-empty-linest)
|
|
```
|
|
```
|
|
|
|
|
|
*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.
|
... | | ... | |