Ignore files with leading tilde #7

Merged
eudaimon merged 1 commits from sk4rd/buuf-nestort:master into master 2023-11-04 19:46:34 +01:00
Contributor

Changes

I have removed the files which end with a tilde and added them to .gitignore.
It seems that these files are always left behind when you edit them.

Deleted:

  • README.md~
  • TODO.md~

Added:

  • .gitignore
    • *~
    • \#*\#

Possible solution

Do you perhaps use emacs?
If so, then you can make emacs not leave these files by adding:

;; Move backup and autosave files to
;; their respective subdirectories
(setq backup-directory-alist
      `((".*" . ,"~/.emacs.d/backups")))
(setq auto-save-file-name-transforms
      `((".*" ,"~/.emacs.d/auto-saves" t)))

...to your early-init.el in ~/.emacs.d/.

### Changes I have removed the files which end with a tilde and added them to `.gitignore`. It seems that these files are always left behind when you edit them. Deleted: - README.md~ - TODO.md~ Added: - .gitignore - `*~` - `\#*\#` ### Possible solution Do you perhaps use emacs? If so, then you can make emacs **not** leave these files by adding: ```elisp ;; Move backup and autosave files to ;; their respective subdirectories (setq backup-directory-alist `((".*" . ,"~/.emacs.d/backups"))) (setq auto-save-file-name-transforms `((".*" ,"~/.emacs.d/auto-saves" t))) ``` ...to your `early-init.el` in `~/.emacs.d/`.
sk4rd added 1 commit 2023-11-02 13:22:15 +01:00
sk4rd changed title from Ignore files with leading tilde to WIP: Ignore files with leading tilde 2023-11-02 13:30:44 +01:00
sk4rd changed title from WIP: Ignore files with leading tilde to Ignore files with leading tilde 2023-11-02 13:30:54 +01:00
eudaimon merged commit 1286516505 into master 2023-11-04 19:46:34 +01:00
Owner

Thanks, merged!

Thanks, merged!
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: eudaimon/buuf-nestort#7
No description provided.