[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tramp: changing umask?
From: |
Michael Albinus |
Subject: |
Re: Tramp: changing umask? |
Date: |
Thu, 09 Jun 2016 08:43:47 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
egarrulo <egarrulo@gmail.com> writes:
> I have found that I can run "chmod 0644" on files, therefore
> if there were a way to run this command after saving a file via Tramp,
> that would could be a way to solve the problem, I think.
There is `tramp-handle-write-region-hook'. Here you can add any function
you want to be executed after writing a file remotely. Like this:
(add-hook 'tramp-handle-write-region-hook
(lambda () (set-file-modes (buffer-file-name) #o644)))
Best regards, Michael.
- Tramp: creating new files with 0644 permissions rather than 0664?, egarrulo, 2016/06/08
- Re: Tramp: creating new files with 0644 permissions rather than 0664?, egarrulo, 2016/06/08
- Re: Tramp: creating new files with 0644 permissions rather than 0664?, Barry Margolin, 2016/06/08
- Re: Tramp: changing umask?, egarrulo, 2016/06/08
- Re: Tramp: changing umask?, Barry Margolin, 2016/06/08
- Re: Tramp: changing umask?, egarrulo, 2016/06/08
- Re: Tramp: changing umask?, Nick Dokos, 2016/06/08
- Message not available
- Re: Tramp: changing umask?, egarrulo, 2016/06/08
- Re: Tramp: changing umask?,
Michael Albinus <=
- Message not available
- Re: Tramp: changing umask?, egarrulo, 2016/06/09