[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: whitespace-mode deactivated at end of line

From: Emanuel Berg
Subject: Re: whitespace-mode deactivated at end of line
Date: Sat, 11 Jun 2022 07:24:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Eli Zaretskii wrote:

> The red background that highlights trailing whitespace

Also why isn't that removed automatically on save? Or are they
programming languages that have that semantically as well or
how ever was put?

(defun untab-all ()
  (unless (member major-mode '(makefile-gmake-mode
                               makefile-mode) ) ; exceptions
    (untabify (point-min) (point-max)))
  nil) ; "did not write buffer to disk"

;; (setq before-save-hook nil)
(defun before-save-hook-f ()
  (delete-trailing-whitespace) )
(add-hook 'before-save-hook #'before-save-hook-f)

I agree with the OP (original poster) in this particular issue
that configuration to make it make sense shouldn't be needed,
in much the same way I agree with the OP (other poster, this
refers to YT) that all basic math stuff should be implemented
and distributed as the official Emacs math library so not
everyone has to do that all over.

Then after math we can do - I don't know. But so we'd have
a super-library of all building blocks pretty soon. And then
one wouldn't have to post source on all the
time to "own" them if you will.

underground experts united

reply via email to

[Prev in Thread] Current Thread [Next in Thread]