help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Looking for some examples


From: Emanuel Berg
Subject: Re: Looking for some examples
Date: Wed, 06 Oct 2021 22:01:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Patrick Mahan wrote:

> I am converting these all to inline functions and already
> have some emacs lisp code written to handle converting
> everything but the backslashes. I would like to remove the
> backslashes, but I do not want to leave all that empty
> whitespace behind. Is there a way to do this using
> query-replace-regexp that also removes the whitespace?

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

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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